-
Bug
-
Resolution: Fixed
-
P1
-
5.0
-
b04
-
generic
-
generic
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2131479 | 6 | Joe Darcy | P1 | Closed | Fixed | b61 |
If I use Class.getAnnotations to discover all the annotations on a class,
and the class includes annotations that are unknown to the runtime (e.g.,
because the class was annotated with vendor-specific annotations for one
app server and is being deployed on another app server), I get an exception
and can't discover any of the annotations on the class. According to the
JSR-175 spec lead, unknown annotations must be ignored by getAnnotations.
and the class includes annotations that are unknown to the runtime (e.g.,
because the class was annotated with vendor-specific annotations for one
app server and is being deployed on another app server), I get an exception
and can't discover any of the annotations on the class. According to the
JSR-175 spec lead, unknown annotations must be ignored by getAnnotations.
- backported by
-
JDK-2131479 unknown annotations are not ignored in Class.getAnnotations
- Closed
- relates to
-
JDK-5041778 (ann) AnnotationFormatError if "default" Class type not found
- Resolved
-
JDK-7183985 (ann) Class.getAnnotation() throws an ArrayStoreException when the annotation class not present
- Closed
-
JDK-6331821 When annotation class is not available, javac fails compiling a class that uses the annotated class
- Closed