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

Improve test coverage for class loading elements with annotations of different retentions

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • P4
    • 24
    • 24
    • tools

    Description

      This change covers adding some additional test coverage for type use annotations read from class files.

      When completing elements from class files, annotations with runtime visible and -invisible retention are read from different attributes, and then completed separately in ClassReader by different 'TypeAnnotationCompleter's.

      The changes in JDK-8225377 to attach type annotations read from bytecode to their corresponding type included some logic for this, which would benefit from more test coverage:

      https://github.com/openjdk/jdk/blob/aabec4a947ed2a808a1443fa6b2dabedd8c2dd9f/src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/ClassReader.java#L2584-L2591

      Attachments

        Issue Links

          Activity

            People

              cushon Liam Miller-Cushon
              cushon Liam Miller-Cushon
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: