Error message should be updated when Override is used with static methods

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 10
    • Affects Version/s: 9
    • Component/s: tools
    • None
    • b14

      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 Override annotation is used with static method.

      Test:
      tools/javac/annotations/6359949/T6359949a.java

      Current error key:
      compiler.err.method.does.not.override.superclass

      Expected error message:
      Override cannot be applied for static methods

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

              Created:
              Updated:
              Resolved: