changeset 47712:4a35a00eb001

8190315: Test tools/javac/tree/NoPrivateTypesExported.java failing Summary: Constant annotation attribute values should be allowed. Reviewed-by: vromero
author jlahoda
date Wed, 01 Nov 2017 16:45:28 +0100
parents 5a1afee9b9e2
children 85331e73e1f4 31c2e88afd3e
files test/langtools/ProblemList.txt test/langtools/tools/javac/tree/NoPrivateTypesExported.java
diffstat 2 files changed, 27 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/langtools/ProblemList.txt	Wed Nov 01 10:49:21 2017 +0800
+++ b/test/langtools/ProblemList.txt	Wed Nov 01 16:45:28 2017 +0100
@@ -54,7 +54,6 @@
 tools/javac/annotations/typeAnnotations/referenceinfos/NestedTypes.java         8057687    generic-all    emit correct byte code an attributes for type annotations
 tools/javac/warnings/suppress/TypeAnnotations.java                              8057683    generic-all    improve ordering of errors with type annotations
 tools/javac/modules/SourceInSymlinkTest.java                                    8180263    windows-all    fails when run on a subst drive
-tools/javac/tree/NoPrivateTypesExported.java                                    8190315    generic-all
 
 ###########################################################################
 #
--- a/test/langtools/tools/javac/tree/NoPrivateTypesExported.java	Wed Nov 01 10:49:21 2017 +0800
+++ b/test/langtools/tools/javac/tree/NoPrivateTypesExported.java	Wed Nov 01 16:45:28 2017 +0100
@@ -206,6 +206,33 @@
                 }
                 return null;
             }
+            @Override public Void visitBoolean(boolean b, Void p) {
+                return null;
+            }
+            @Override public Void visitByte(byte b, Void p) {
+                return null;
+            }
+            @Override public Void visitChar(char c, Void p) {
+                return null;
+            }
+            @Override public Void visitDouble(double d, Void p) {
+                return null;
+            }
+            @Override public Void visitFloat(float f, Void p) {
+                return null;
+            }
+            @Override public Void visitInt(int i, Void p) {
+                return null;
+            }
+            @Override public Void visitLong(long i, Void p) {
+                return null;
+            }
+            @Override public Void visitShort(short s, Void p) {
+                return null;
+            }
+            @Override public Void visitString(String s, Void p) {
+                return null;
+            }
             @Override protected Void defaultAction(Object o, Void p) {
                 error("Unexpected AnnotationValue: " + o.toString());
                 return super.defaultAction(o, p);