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

Update error message for incorrect annotation type declaration

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 9
    • tools
    • b15

      During work for JDK-8068464 for creation of golden files for negative tests, following error message was generated for tools/javac/IllegalAnnotation.java:

      IllegalAnnotation.java:10:10: compiler.err.intf.not.allowed.here
      1 error

      As per Jon's comments, the error message does not point out the equally incorrect '@' that precedes 'interface'. Also, the error message text should be: "annotation type declaration not allowed here"

            pmuthuswamy Priya Lakshmi Muthuswamy (Inactive)
            sogoel Sonali Goel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: