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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 9
    • 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

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

              Created:
              Updated:
              Resolved: