Type Annotations
This feature was delivered into JDK 9 which was released March 2014. The Project was dissolved by virtue of losing its sponsoring Group. Discussion about type annotations may be found on compiler-dev. New language features are discussed on amber-dev.
The goals of the Type Annotations Project were:
-
Develop the Reference Implementation of JSR 308, Annotations on Java Types. Development was covered by JEP 104.
-
Integrate the Reference Implementation into JDK 8, the Reference Implementation of JSR 337, Java SE 8 Release Contents.
As of March 2014, development is finished and integration into JDK 8 is complete. The Project's mailing list (type-annotations-dev, archives) and Mercurial forest (type-annotations) have been archived. The JSR 308 Expert Group mailing list (type-annotations-spec-experts, archives) has also been archived.
Please report bugs in the implementation to bugreport.java.com or (if you are an OpenJDK Committer) via bugs.openjdk.org.
-
Bugs in how javac handles type annotations are tracked in tools/javac.
-
Bugs in how Core Reflection exposes type annotations are tracked in core-libs/java.lang:reflect.
-
Bugs in how Annotation Processing exposes type annotations are tracked in core-libs/javax.lang.model.
The Project was sponsored by the Compiler Group.
Resources
-
The Java Tutorial: Type Annotations and Pluggable Type Systems
-
JavaOne 2013 presentation: Enhanced Metadata in Java SE 8
-
Type Annotations (JSR 308) and the Checker Framework at the University of Washington.
- Type Annotations wiki describing open issues, clean-ups, and testing.