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

poor error recovery after symbol not found

    Details

    • Subcomponent:
    • Resolved In Build:
      b130
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      The context is an annotation processor in which TypeElement is not imported. I get an initial error, which is good, then a followup error, which would be better if it were not generated.

      /w/jjg/work/DiagsExamples/6966604-filer/7/langtools/test/tools/javac/processing/filer/TestLastRound.java:60: cannot find symbol
          public boolean process(Set<? extends TypeElement> annotations,
                                               ^
        symbol: class TypeElement
        location: class TestLastRound
      /w/jjg/work/DiagsExamples/6966604-filer/7/langtools/test/tools/javac/processing/filer/TestLastRound.java:60: type parameter ? extends TypeElement is not within its bound
          public boolean process(Set<? extends TypeElement> annotations,
                                     ^
      2 errors

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mcimadamore Maurizio Cimadamore
                Reporter:
                jjg Jonathan Gibbons
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: