hg: jdk10/jdk10/langtools: 8068836: Error message should be updated when Override is used with static methods

srikanth.adayapalam at oracle.com srikanth.adayapalam at oracle.com
Mon Jul 3 07:30:30 UTC 2017


Changeset: add6717b655e
Author:    sadayapalam
Date:      2017-07-03 12:58 +0530
URL:       http://hg.openjdk.java.net/jdk10/jdk10/langtools/rev/add6717b655e

8068836: Error message should be updated when Override is used with static methods
Summary: Issue a more direct, specific error when @Override annotation is used with a static method
Reviewed-by: sadayapalam
Contributed-by: priya.lakshmi.muthuswamy at oracle.com

! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Check.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/resources/compiler.properties
! test/tools/javac/annotations/6359949/T6359949a.java
! test/tools/javac/annotations/6359949/T6359949a.out
+ test/tools/javac/diags/examples/OverrideAnnotatedStaticMethod.java



More information about the jdk10-all-changes mailing list