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

Class-valued annotation elements not correctly represented in class file

XMLWordPrintable

    • rc
    • generic, x86, sparc
    • generic, solaris_8, solaris_9, windows_xp



      Name: ss24420 Date: 03/25/2004


      This is really a JSR 175 spec bug.

      Consider this annotation type:

          @interface A {
      Class value();
          }

      and the annotation:

          @A(boolean.class)

      The element value boolean.class is supposed to be represented in a
      class file's constant_pool table using a CONSTANT_Class_info structure.
      However, boolean isn't a class or interface, so it cannot be
      represented by a CONSTANT_Class_info structure as currently spec'ed.

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

            gbrachasunw Gilad Bracha (Inactive)
            sseligmasunw Scott Seligman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: