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

RoundEnvironment.getElementsAnnotatedWith(Class) crashes with -source 8

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 12
    • Fix Version/s: 12
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b19

      Description

      The RoundEnvironment.getElementsAnnotatedWith(Class) method may crash if:
      - -source 8 is used
      -the annotation provided cannot be resolved on the javac's classpath

      A testcase is attached.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jlahoda Jan Lahoda
                Reporter:
                jlahoda Jan Lahoda
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: