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

Annotation attributes must not appear more than once

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b15

      Description

      The JVM Specification says that there may be at most one of the following attributes in the attributes table of a ClassFile, field_info, or method_info structure for these attributes: Runtime(In)VisibleAnnotations, Runtime(In)VisibleParameterAnnotations, AnnotationDefault, and SourceDebugExtension.

      The verifier does not detect if these attributes are specified multiple times per relevant ClassFile, field_info, or method_info structure.

        Attachments

          Activity

            People

            Assignee:
            hseigel Harold Seigel
            Reporter:
            hseigel Harold Seigel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: