By Darcy-Oracle on Dec 08, 2013
The annotation processing API, both the processor-specific portion of the API in
javax.annotation.processing and the language modeling portions in
javax.lang.model.*, are being updated to support the new language features in Java SE 8.
Procedurally, the proposed changes are covered by the second maintenance review of JSR 269:
Maintenance Draft Review 2.
As summarized on on the maintenance review page, there are three categories of changes from the version of the API shipped with Java SE 7:
- Cleaning up the existing specification without changing its semantics (adding missing javadoc tags, etc.)
- API changes to support the language changes being made in Project Lambda /JSR 335.
These includes adding
javax.lang.model.type.IntersectionTypeas well as
- API changes to support the language changes being made under JSR 308, Annotations on Java Types. These include
A detailed specification difference is available. Please post any comments here or send them to me through email.