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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 10
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b14

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: