Coder Social home page Coder Social logo

Comments (7)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 20, 2024
Hi Robert,
this would of course only work with annotation that are still visible in the 
class files. If the compiler nukes them, they can no longer be detected. Your 
example would work, as it is a runtime annotation, and should be easy to 
implement (just add the visitAnnotation method to the class and method visitors 
and other places). I don't think that it is possible to detect annotations 
inside methods next to code blocks (but those cannot be runtime visible at all 
- not sure).
Java 8 also adds crazy new annotations to places in the class files where it 
was not possible to add them before (@NotNull,...).

Original comment by uwe.h.schindler on 16 May 2013 at 6:26

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

from forbidden-apis.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 20, 2024
Here is a patch, unfortunately it is hard to test. The antunit stuff is really 
a nightmare!

Original comment by [email protected] on 15 Apr 2014 at 12:33

Attachments:

from forbidden-apis.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 20, 2024
Hi Robert,
I will write a test. If you are not so familar with Antunit, it is indeed hard 
:(

Original comment by uwe.h.schindler on 15 Apr 2014 at 6:19

from forbidden-apis.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 20, 2024
Yes, i tried for several hours to figure it out. no success...

Original comment by [email protected] on 15 Apr 2014 at 7:59

from forbidden-apis.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 20, 2024
Patch, which also fixes issue #25 and refactors error reporting (because we 
only have line numbers inside method bodies, we report the signatures to lookup 
problems faster)

Original comment by uwe.h.schindler on 15 Apr 2014 at 11:05

Attachments:

from forbidden-apis.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 20, 2024
Fixed.

Original comment by uwe.h.schindler on 15 Apr 2014 at 11:23

  • Changed state: Committed

from forbidden-apis.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 20, 2024
Close after release of version 1.5.

Original comment by uwe.h.schindler on 16 Apr 2014 at 9:53

  • Changed state: Fixed

from forbidden-apis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.