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

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

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • P4
    • 9
    • None
    • core-libs
    • None
    • 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

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

                Dates

                  Created:
                  Updated:
                  Resolved: