Name: ss24420 Date: 03/25/2004
Consider this annotation type:
@interface A {
Class value();
}
The compiler's internal representation of a value of the lone
annoation element is Attribute.Class, which contains a ClassSymbol.
This is fine for values like String.class, but it cannot represent
primitive arrays such as with @A(boolean[].class).
Perhaps we need to rename Attribute.Class to Attribute.Type,
and replace the ClassSymbol with a Type.
======================================================================
- duplicates
-
JDK-5040842 javac-generated array and primitive-class annotation values crash getAnnotations
- Resolved