JSR 308 Early Draft Review
By abuckley on Jan 31, 2012
I am pleased to announce an Early Draft Review of JSR 308, which extends the Java language in Java SE 8 so that annotations may appear on essentially any use of a type.
This generalization of annotations with respect to Java SE 7 (where annotations may only appear on declarations) enables new uses of annotations, such as the Checker Framework. JSR 308 itself makes no commitment about the semantics of annotations which might appear in any given location.
The PDF available for Early Draft Review covers language changes and class file support, and sketches interactions with other language features planned for Java SE 8. We expect the next milestone review will include APIs for reflection (
java.lang.reflect) and annotation processing (JSR 269's
javax.lang.model). The reference implementation will be moved from the jsr308-langtools project into OpenJDK's Type Annotations project by that time.