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

Strange & misclassified disgnostic results in annotation processing round skipped.

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: tbd_minor
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Introduced In Build:
      b70
    • Introduced In Version:
      9
    • CPU:
      generic
    • OS:
      generic

      Description

      (Distilled from report by Victor.Rudometov@oracle.com in compiler-dev@openjdk.java.net)

      Given the following program:

      public class X {
          public void method() throws @Annot SomeException {}
      }

      JDK 9b70 has started issuing messages of the form:

      X.java:2: error: cannot find symbol
          public void method() throws @Annot SomeException {}
                                       ^
        symbol: class Annot
        location: class X
      X.java:2: error: scoping construct cannot be annotated with type-use annotation: Annot
          public void method() throws @Annot SomeException {}
                                             ^
      2 errors

      The second error message is bogus - happens because internally we are classifying SomeException
      as a package name inadvertently. So the second error does not qualify as a recoverable (resolution
      related error) and so annotation processing round is skipped.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sadayapalam Srikanth Adayapalam
                Reporter:
                sadayapalam Srikanth Adayapalam
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated: