changeset 4282:22f7608d1b4f

Add :private to tests direcly using setAccessible
author alanb
date Fri, 02 Sep 2016 13:21:31 +0100
parents 188528a09f2b
children 2f4d37fefc9e
files test/jdk/jshell/CompletionSuggestionTest.java test/jdk/jshell/ComputeFQNsTest.java test/jdk/jshell/HistoryTest.java test/tools/javac/6304921/TestLog.java test/tools/javac/6410653/T6410653.java test/tools/javac/modules/PatchModulesTest.java test/tools/javac/options/release/ReleaseOptionClashes.java test/tools/javac/processing/model/TestSymtabItems.java test/tools/javac/scope/DupUnsharedTest.java test/tools/javac/scope/HashCollisionTest.java test/tools/javac/types/ScopeListenerTest.java
diffstat 11 files changed, 11 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/test/jdk/jshell/CompletionSuggestionTest.java	Thu Sep 01 22:13:47 2016 -0700
+++ b/test/jdk/jshell/CompletionSuggestionTest.java	Fri Sep 02 13:21:31 2016 +0100
@@ -28,6 +28,7 @@
  * @modules jdk.compiler/com.sun.tools.javac.api
  *          jdk.compiler/com.sun.tools.javac.main
  *          jdk.jdeps/com.sun.tools.javap
+ *          jdk.jshell/jdk.jshell:private
  * @library /tools/lib
  * @build toolbox.ToolBox toolbox.JarTask toolbox.JavacTask
  * @build KullaTesting TestingInputStream Compiler
--- a/test/jdk/jshell/ComputeFQNsTest.java	Thu Sep 01 22:13:47 2016 -0700
+++ b/test/jdk/jshell/ComputeFQNsTest.java	Fri Sep 02 13:21:31 2016 +0100
@@ -28,6 +28,7 @@
  * @library /tools/lib
  * @modules jdk.compiler/com.sun.tools.javac.api
  *          jdk.compiler/com.sun.tools.javac.main
+ *          jdk.jshell/jdk.jshell:private
  * @build toolbox.ToolBox toolbox.JarTask toolbox.JavacTask
  * @build KullaTesting TestingInputStream Compiler
  * @run testng ComputeFQNsTest
--- a/test/jdk/jshell/HistoryTest.java	Thu Sep 01 22:13:47 2016 -0700
+++ b/test/jdk/jshell/HistoryTest.java	Fri Sep 02 13:21:31 2016 +0100
@@ -25,7 +25,7 @@
  * @test
  * @summary Test Completion
  * @modules jdk.internal.le/jdk.internal.jline.extra
- *          jdk.jshell/jdk.internal.jshell.tool
+ *          jdk.jshell/jdk.internal.jshell.tool:private
  * @build HistoryTest
  * @run testng HistoryTest
  */
--- a/test/tools/javac/6304921/TestLog.java	Thu Sep 01 22:13:47 2016 -0700
+++ b/test/tools/javac/6304921/TestLog.java	Fri Sep 02 13:21:31 2016 +0100
@@ -28,7 +28,7 @@
  * @modules jdk.compiler/com.sun.tools.javac.file
  *          jdk.compiler/com.sun.tools.javac.parser
  *          jdk.compiler/com.sun.tools.javac.tree
- *          jdk.compiler/com.sun.tools.javac.util
+ *          jdk.compiler/com.sun.tools.javac.util:private
  */
 import java.lang.reflect.Field;
 import java.io.InputStream;
--- a/test/tools/javac/6410653/T6410653.java	Thu Sep 01 22:13:47 2016 -0700
+++ b/test/tools/javac/6410653/T6410653.java	Fri Sep 02 13:21:31 2016 +0100
@@ -27,7 +27,7 @@
  * @summary REGRESSION: javac crashes if -d or -s argument is a file
  * @author  Peter von der Ah\u00e9
  * @modules java.compiler
- *          jdk.compiler/com.sun.tools.javac.util
+ *          jdk.compiler/com.sun.tools.javac.util:private
  */
 
 import java.lang.reflect.Field;
--- a/test/tools/javac/modules/PatchModulesTest.java	Thu Sep 01 22:13:47 2016 -0700
+++ b/test/tools/javac/modules/PatchModulesTest.java	Fri Sep 02 13:21:31 2016 +0100
@@ -28,7 +28,7 @@
  * @library /tools/lib
  * @modules
  *      jdk.compiler/com.sun.tools.javac.api
- *      jdk.compiler/com.sun.tools.javac.file
+ *      jdk.compiler/com.sun.tools.javac.file:private
  *      jdk.compiler/com.sun.tools.javac.main
  * @build toolbox.ToolBox toolbox.JavacTask toolbox.ModuleBuilder ModuleTestBase
  * @run main PatchModulesTest
--- a/test/tools/javac/options/release/ReleaseOptionClashes.java	Thu Sep 01 22:13:47 2016 -0700
+++ b/test/tools/javac/options/release/ReleaseOptionClashes.java	Fri Sep 02 13:21:31 2016 +0100
@@ -25,7 +25,7 @@
  * @test
  * @bug 8072480
  * @summary Verify option clash between -release and -source is reported correctly.
- * @modules jdk.compiler/com.sun.tools.javac.util
+ * @modules jdk.compiler/com.sun.tools.javac.util:private
  */
 
 import java.io.ByteArrayOutputStream;
--- a/test/tools/javac/processing/model/TestSymtabItems.java	Thu Sep 01 22:13:47 2016 -0700
+++ b/test/tools/javac/processing/model/TestSymtabItems.java	Fri Sep 02 13:21:31 2016 +0100
@@ -25,7 +25,7 @@
  * @test
  * @bug 7021183 7025809
  * @summary 269: assertion failure getting enclosing element of an undefined name
- * @modules jdk.compiler/com.sun.tools.javac.code
+ * @modules jdk.compiler/com.sun.tools.javac.code:private
  *          jdk.compiler/com.sun.tools.javac.file
  *          jdk.compiler/com.sun.tools.javac.main
  *          jdk.compiler/com.sun.tools.javac.model
--- a/test/tools/javac/scope/DupUnsharedTest.java	Thu Sep 01 22:13:47 2016 -0700
+++ b/test/tools/javac/scope/DupUnsharedTest.java	Fri Sep 02 13:21:31 2016 +0100
@@ -24,7 +24,7 @@
 /*
  * @test
  * @summary WriteableScope.dupUnshared not working properly for shared Scopes.
- * @modules jdk.compiler/com.sun.tools.javac.code
+ * @modules jdk.compiler/com.sun.tools.javac.code:private
  *          jdk.compiler/com.sun.tools.javac.file
  *          jdk.compiler/com.sun.tools.javac.util
  */
--- a/test/tools/javac/scope/HashCollisionTest.java	Thu Sep 01 22:13:47 2016 -0700
+++ b/test/tools/javac/scope/HashCollisionTest.java	Fri Sep 02 13:21:31 2016 +0100
@@ -27,7 +27,7 @@
  * @summary Ensure Scope impl can cope with hash collisions
  * @library /tools/javac/lib
  * @modules jdk.compiler/com.sun.tools.javac.api
- *          jdk.compiler/com.sun.tools.javac.code
+ *          jdk.compiler/com.sun.tools.javac.code:private
  *          jdk.compiler/com.sun.tools.javac.file
  *          jdk.compiler/com.sun.tools.javac.tree
  *          jdk.compiler/com.sun.tools.javac.util
--- a/test/tools/javac/types/ScopeListenerTest.java	Thu Sep 01 22:13:47 2016 -0700
+++ b/test/tools/javac/types/ScopeListenerTest.java	Fri Sep 02 13:21:31 2016 +0100
@@ -26,7 +26,7 @@
  * @bug 8039262
  * @summary Ensure that using Types.membersClosure does not increase the number of listeners on the
  *          class's members Scope.
- * @modules jdk.compiler/com.sun.tools.javac.code
+ * @modules jdk.compiler/com.sun.tools.javac.code:private
  *          jdk.compiler/com.sun.tools.javac.file
  *          jdk.compiler/com.sun.tools.javac.util
  */