hg: jdk10/sandbox/langtools: 8074364: Update error message for incorrect annotation type declaration

chris.hegarty at oracle.com chris.hegarty at oracle.com
Wed Jul 12 07:03:00 UTC 2017


Changeset: 069d27d987c7
Author:    pmuthuswamy
Date:      2017-07-12 12:27 +0530
URL:       http://hg.openjdk.java.net/jdk10/sandbox/langtools/rev/069d27d987c7

8074364: Update error message for incorrect annotation type declaration
Summary: Issue a more direct, specific error when an annotation type is declared where it is disallowed
Reviewed-by: sadayapalam

! 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/IllegalAnnotation.java
! test/tools/javac/IllegalAnnotation.out
+ test/tools/javac/diags/examples/IllegalAnnotationDeclaration.java



More information about the jdk10-sandbox-changes mailing list