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

Add test that captures current behavior of annotations with invalid annotation types

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b155

      Backports

        Description

        JLS specifies what constitutes a valid annotation type. javac does not permit creating a class file that would be an invalid annotation type, but class files can be constructed with other tools that are valid from the perspective of bytecode verifier and later fail during accessing of annotations using those types. Depending on the sort of annotation type invalidity, such annotations experience different failures at different times. The test will capture this behavior to enable further discussion about whether some of such failure modes can be changed.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                plevart Peter Levart
                Reporter:
                plevart Peter Levart
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: