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:
javax.lang.model.type.IntersectionType
as well as javax.lang.model.element.ExecutableElement.isDefault
.javax.lang.model.AnnotatedConstruct
and updating javax.annotation.processing.Processor
. The small repeating annotations language change, discussed on an OpenJDK alias, is also supported by the proposed changes.
A detailed specification difference is available. Please post any comments here or send them to me through email.