Type Annotations (JSR-308) Support
July 29th, 2009 by Alexey KudravtsevAs you all know, JDK 7 includes new java syntax for Annotations on Types (JSR-308)
To enable JSR-308 support in Maia, set the Java language level level to 7:

Then you can declare and use your weird type annotations almost everywhere:

To enable type annotations compilation in IntelliJ IDEA, download the latest Open JDK build, patch it as described in Type Annotations Prototype Implementation FAQ, and attach it to an IntelliJ IDEA project via Project SDK on Project tab in the Project Structure dialog (Ctrl+Alt+Shift+S).
August 9th, 2009 at 5:58 am
Thank you! I am craving for a release of JDK7 to finally beat the hell out of bugs in my programs