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
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
- relates to
-
JDK-8043283 Create .out files for negative tests in langtools regression ws
-
- Resolved
-