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

Strange & misclassified disgnostic results in annotation processing round skipped.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • None
    • tools
    • None
    • b70
    • 9
    • generic
    • generic

      (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.

            sadayapalam Srikanth Adayapalam (Inactive)
            sadayapalam Srikanth Adayapalam (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: