Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5020899

Incorrect internal representation of class-valued annotation elements

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 5.0
    • tools
    • None
    • sparc
    • solaris_9



      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.

      ======================================================================

            gafter Neal Gafter (Inactive)
            sseligmasunw Scott Seligman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: