Details
-
Enhancement
-
Resolution: Fixed
-
P4
-
12
Description
The two RoundEnvironment methods:
RoundEnvironment.getElementsAnnotatedWith​(Class<? extends Annotation> a)
RoundEnvironment.getElementsAnnotatedWithAny​(Set<Class<? extends
Annotation>> annotations)
can expose a difference between annotation types available at runtime via Class objects versus the annotation types available at compile time as TypeElements.
This hazard should be mentioned in the API docs.
RoundEnvironment.getElementsAnnotatedWith​(Class<? extends Annotation> a)
RoundEnvironment.getElementsAnnotatedWithAny​(Set<Class<? extends
Annotation>> annotations)
can expose a difference between annotation types available at runtime via Class objects versus the annotation types available at compile time as TypeElements.
This hazard should be mentioned in the API docs.
Attachments
Issue Links
- csr for
-
JDK-8213310 Clarify runtime vs compile time annotations for RoundEnvironment.getElementsAnnotatedWith(Class)
-
- Closed
-
- relates to
-
JDK-8213103 RoundEnvironment.getElementsAnnotatedWith(Class) crashes with -source 8
-
- Resolved
-