Update error message when no default value and no annotation type element value is specified

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Won't Fix
    • Priority: P4
    • None
    • Affects Version/s: 9
    • Component/s: tools

      During work for JDK-8068463 for creation of golden files for negative tests, it was discovered that the error diagnostic was suboptimal and should be updated for error case when annotation type element value is not specified and default value is also not available

      Test:
      tools/javac/annotations/default/Derr.java

      Current error key:
      compiler.err.annotation.missing.default.value: A, x

      Expected error message:
      No value provided for x, and no default value available

            Assignee:
            Unassigned
            Reporter:
            Sonali Goel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: