Features

Type Annotations (JSR-308) Support

As 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).

Discover more