From de261554f70dde716bd051d421a5e96ce038d553 Mon Sep 17 00:00:00 2001 From: Jan Lahoda Date: Wed, 1 Nov 2017 16:45:28 +0100 Subject: [PATCH] 8190315: Test tools/javac/tree/NoPrivateTypesExported.java failing Constant annotation attribute values should be allowed. Reviewed-by: vromero --- test/langtools/ProblemList.txt | 1 - .../javac/tree/NoPrivateTypesExported.java | 27 +++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/test/langtools/ProblemList.txt b/test/langtools/ProblemList.txt index db537ed83f2..4cf72be2bc4 100644 --- a/test/langtools/ProblemList.txt +++ b/test/langtools/ProblemList.txt @@ -54,7 +54,6 @@ tools/javac/annotations/typeAnnotations/referenceinfos/Lambda.java 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 ########################################################################### # diff --git a/test/langtools/tools/javac/tree/NoPrivateTypesExported.java b/test/langtools/tools/javac/tree/NoPrivateTypesExported.java index 38b6b964463..2f8b51f0a30 100644 --- a/test/langtools/tools/javac/tree/NoPrivateTypesExported.java +++ b/test/langtools/tools/javac/tree/NoPrivateTypesExported.java @@ -206,6 +206,33 @@ public class NoPrivateTypesExported extends JavacTestingAbstractProcessor { } 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);