Incorrect internal representation of class-valued annotation elements

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 5.0
    • Component/s: 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.

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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: