Musings on JDK development

Mustang Build 91 JSR 269 API Changes

In build 91 of Mustang, to address bug 6425592 we added a method to RoundEnvironment:
Set<? extends Element> getElementsAnnotatedWith(Class<? extends Annotation> a)

which parallels the existing method
Set<? extends Element>getElementsAnnotatedWith(TypeElement a)

The new method is similar in spirit to the Element.getAnnotation; while it violates meta and base level separation, used with care, it can make programming more convenient.

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.