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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 9
    • 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

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

              Created:
              Updated:
              Resolved: