What can you do and not do with java annotations?

Posted by swampsjohn on Stack Overflow See other posts from Stack Overflow or by swampsjohn
Published on 2010-06-06T18:26:56Z Indexed on 2010/06/06 18:32 UTC
Read the original article Hit count: 189

Filed under:
|

The typical use-case is for simple things like @Override, but clearly you can do a lot more with them. If you push the limits of them, you get things like Project Lombok, though my understanding is that that's a huge abuse of annotations. What exactly can you do? What sort of things can you do at compile-time and run-time with annotations? What can you not do?

© Stack Overflow or respective owner

Related posts about java

Related posts about annotations