8140336: Add @modules for exported dependencies to jdk_core tests
authorshurailine
Tue, 27 Oct 2015 20:06:02 -0700
changeset 33402 1156d495a525
parent 33373 4a0312f2894b
child 33403 d2bfc26f26cc
8140336: Add @modules for exported dependencies to jdk_core tests Reviewed-by: alanb, mchung
jdk/test/java/lang/ProcessHandle/TEST.properties
jdk/test/java/lang/annotation/AnnotationType/AnnotationTypeDeadlockTest.java
jdk/test/java/lang/instrument/AddTransformerTest.java
jdk/test/java/lang/instrument/AppendToBootstrapClassPathTest.java
jdk/test/java/lang/instrument/AppendToClassPathTest.java
jdk/test/java/lang/instrument/BootClassPath/BootClassPathTest.sh
jdk/test/java/lang/instrument/FromShutdownHook.java
jdk/test/java/lang/instrument/GetAllLoadedClassesTest.java
jdk/test/java/lang/instrument/GetInitiatedClassesTest.java
jdk/test/java/lang/instrument/GetObjectSizeTest.java
jdk/test/java/lang/instrument/IsModifiableClassAgent.java
jdk/test/java/lang/instrument/ManifestTest.sh
jdk/test/java/lang/instrument/NativeMethodPrefixAgent.java
jdk/test/java/lang/instrument/NoTransformerAddedTest.java
jdk/test/java/lang/instrument/NullGetObjectSizeTest.java
jdk/test/java/lang/instrument/NullRedefineClassesTests.java
jdk/test/java/lang/instrument/NullTransformerAddTest.java
jdk/test/java/lang/instrument/NullTransformerRemoveTest.java
jdk/test/java/lang/instrument/ParallelTransformerLoader.sh
jdk/test/java/lang/instrument/PremainClass/InheritAgent0010.java
jdk/test/java/lang/instrument/PremainClass/InheritAgent0011.java
jdk/test/java/lang/instrument/PremainClass/InheritAgent0110.java
jdk/test/java/lang/instrument/PremainClass/InheritAgent0111.java
jdk/test/java/lang/instrument/PremainClass/InheritAgent1000.java
jdk/test/java/lang/instrument/PremainClass/InheritAgent1001.java
jdk/test/java/lang/instrument/PremainClass/InheritAgent1010.java
jdk/test/java/lang/instrument/PremainClass/InheritAgent1011.java
jdk/test/java/lang/instrument/PremainClass/InheritAgent1100.java
jdk/test/java/lang/instrument/PremainClass/InheritAgent1101.java
jdk/test/java/lang/instrument/PremainClass/InheritAgent1110.java
jdk/test/java/lang/instrument/PremainClass/InheritAgent1111.java
jdk/test/java/lang/instrument/RedefineBigClass.sh
jdk/test/java/lang/instrument/RedefineClassWithNativeMethod.sh
jdk/test/java/lang/instrument/RedefineClassesDisabledTest.java
jdk/test/java/lang/instrument/RedefineClassesTests.java
jdk/test/java/lang/instrument/RedefineMethodAddInvoke.sh
jdk/test/java/lang/instrument/RedefineMethodDelInvoke.sh
jdk/test/java/lang/instrument/RedefineMethodInBacktrace.sh
jdk/test/java/lang/instrument/RedefineMethodWithAnnotations.sh
jdk/test/java/lang/instrument/RedefineSubclassWithTwoInterfaces.sh
jdk/test/java/lang/instrument/RemoveAbsentTransformerTest.java
jdk/test/java/lang/instrument/RemoveTransformerTest.java
jdk/test/java/lang/instrument/RetransformBigClass.sh
jdk/test/java/lang/instrument/SingleTransformerTest.java
jdk/test/java/lang/instrument/StressGetObjectSizeTest.sh
jdk/test/java/lang/instrument/TEST.properties
jdk/test/java/lang/instrument/TransformMethodTest.java
jdk/test/java/lang/instrument/TransformerManagementThreadAddTests.java
jdk/test/java/lang/instrument/TransformerManagementThreadRemoveTests.java
jdk/test/java/lang/instrument/VerifyLocalVariableTableOnRetransformTest.sh
jdk/test/java/lang/instrument/appendToClassLoaderSearch/CircularityErrorTest.sh
jdk/test/java/lang/instrument/appendToClassLoaderSearch/ClassUnloadTest.sh
jdk/test/java/lang/instrument/appendToClassLoaderSearch/run_tests.sh
jdk/test/java/lang/invoke/LFCaching/LFMultiThreadCachingTest.java
jdk/test/java/lang/invoke/lambda/LambdaAccessControlDoPrivilegedTest.java
jdk/test/java/lang/invoke/lambda/LambdaAccessControlTest.java
jdk/test/java/lang/invoke/lambda/LambdaAsm.java
jdk/test/java/lang/invoke/lambda/LambdaStackTrace.java
jdk/test/jdk/lambda/TEST.properties
jdk/test/sun/misc/JarIndex/metaInfFilenames/Basic.java
jdk/test/sun/reflect/AnonymousNewInstance/ManyNewInstanceAnonTest.java
jdk/test/vm/verifier/defaultMethods/DefaultMethodRegressionTestsRun.java
--- a/jdk/test/java/lang/ProcessHandle/TEST.properties	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/ProcessHandle/TEST.properties	Tue Oct 27 20:06:02 2015 -0700
@@ -1,4 +1,4 @@
 # ProcessHandle tests use TestNG
 TestNG.dirs = .
 lib.dirs = /lib/testlibrary
-
+modules = jdk.management
--- a/jdk/test/java/lang/annotation/AnnotationType/AnnotationTypeDeadlockTest.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/annotation/AnnotationType/AnnotationTypeDeadlockTest.java	Tue Oct 27 20:06:02 2015 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -25,6 +25,7 @@
  * @test
  * @bug 7122142
  * @summary Test deadlock situation when recursive annotations are parsed
+ * @modules java.management
  */
 
 import java.lang.annotation.Retention;
--- a/jdk/test/java/lang/instrument/AddTransformerTest.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/AddTransformerTest.java	Tue Oct 27 20:06:02 2015 -0700
@@ -27,7 +27,6 @@
  * @summary confirms that added transformers all really run
  * @author Gabriel Adauto, Wily Technology
  *
- * @modules java.instrument
  * @run build AddTransformerTest ATransformerManagementTestCase
  * @run shell MakeJAR.sh redefineAgent
  * @run main/othervm -javaagent:redefineAgent.jar AddTransformerTest AddTransformerTest
--- a/jdk/test/java/lang/instrument/AppendToBootstrapClassPathTest.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/AppendToBootstrapClassPathTest.java	Tue Oct 27 20:06:02 2015 -0700
@@ -27,7 +27,6 @@
  * @summary simple test for the Boot-Class-Path manifest attribute
  * @author Gabriel Adauto, Wily Technology, Robert Field, Sun Microsystems
  *
- * @modules java.instrument
  * @run build AppendToBootstrapClassPathTest ExampleForBootClassPath
  * @run shell AppendToBootstrapClassPathSetUp.sh
  * @run shell MakeJAR.sh bootclasspathAgent
--- a/jdk/test/java/lang/instrument/AppendToClassPathTest.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/AppendToClassPathTest.java	Tue Oct 27 20:06:02 2015 -0700
@@ -27,7 +27,6 @@
  * @summary simple test for the Class-Path manifest attribute
  * @author Gabriel Adauto, Wily Technology; Robert Field, Sun Microsystems
  *
- * @modules java.instrument
  * @run build AppendToClassPathTest
  * @run shell AppendToClassPathSetUp.sh
  * @run shell MakeJAR.sh classpathAgent
--- a/jdk/test/java/lang/instrument/BootClassPath/BootClassPathTest.sh	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/BootClassPath/BootClassPathTest.sh	Tue Oct 27 20:06:02 2015 -0700
@@ -27,7 +27,6 @@
 #          attribute.
 #
 # @key intermittent
-# @modules java.instrument
 # @run shell/timeout=240 BootClassPathTest.sh
 
 if [ "${TESTJAVA}" = "" ]
--- a/jdk/test/java/lang/instrument/FromShutdownHook.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/FromShutdownHook.java	Tue Oct 27 20:06:02 2015 -0700
@@ -26,7 +26,6 @@
  * @bug 5050487
  * @summary Check that Instrumentation methods can execute from a runtime
  *          shutdown hook
- * @modules java.instrument
  * @run build FromShutdownHook
  * @run shell MakeJAR.sh basicAgent
  * @run main/othervm -javaagent:basicAgent.jar FromShutdownHook FromShutdownHook
--- a/jdk/test/java/lang/instrument/GetAllLoadedClassesTest.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/GetAllLoadedClassesTest.java	Tue Oct 27 20:06:02 2015 -0700
@@ -27,7 +27,6 @@
  * @summary simple tests for getAllLoadedClasses (is Object there? does a newly loaded class show up?)
  * @author Gabriel Adauto, Wily Technology
  *
- * @modules java.instrument
  * @run build GetAllLoadedClassesTest DummyClass
  * @run shell MakeJAR.sh basicAgent
  * @run main/othervm -javaagent:basicAgent.jar GetAllLoadedClassesTest GetAllLoadedClassesTest
--- a/jdk/test/java/lang/instrument/GetInitiatedClassesTest.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/GetInitiatedClassesTest.java	Tue Oct 27 20:06:02 2015 -0700
@@ -27,7 +27,6 @@
  * @summary simple tests for getInitiatedClasses (does a newly loaded class show up?)
  * @author Gabriel Adauto, Wily Technology
  *
- * @modules java.instrument
  * @run build GetInitiatedClassesTest DummyClass
  * @run shell MakeJAR.sh basicAgent
  * @run main/othervm -javaagent:basicAgent.jar GetInitiatedClassesTest GetInitiatedClassesTest
--- a/jdk/test/java/lang/instrument/GetObjectSizeTest.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/GetObjectSizeTest.java	Tue Oct 27 20:06:02 2015 -0700
@@ -27,7 +27,6 @@
  * @summary round-trip test for getObjectSize (does it return, and is the result non-zero?)
  * @author Gabriel Adauto, Wily Technology
  *
- * @modules java.instrument
  * @run build GetObjectSizeTest
  * @run shell MakeJAR.sh basicAgent
  * @run main/othervm -javaagent:basicAgent.jar GetObjectSizeTest GetObjectSizeTest
--- a/jdk/test/java/lang/instrument/IsModifiableClassAgent.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/IsModifiableClassAgent.java	Tue Oct 27 20:06:02 2015 -0700
@@ -27,7 +27,6 @@
  * @summary test isModifiableClass
  * @author Robert Field, Sun Microsystems
  *
- * @modules java.instrument
  * @run build IsModifiableClassApp IsModifiableClassAgent
  * @run shell MakeJAR3.sh IsModifiableClassAgent 'Can-Retransform-Classes: true'
  * @run main/othervm -javaagent:IsModifiableClassAgent.jar IsModifiableClassApp
--- a/jdk/test/java/lang/instrument/ManifestTest.sh	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/ManifestTest.sh	Tue Oct 27 20:06:02 2015 -0700
@@ -27,7 +27,6 @@
 # @author Daniel D. Daugherty
 #
 # @key intermittent
-# @modules java.instrument
 # @run build ManifestTestApp ExampleForBootClassPath
 # @run shell/timeout=900 ManifestTest.sh
 #
--- a/jdk/test/java/lang/instrument/NativeMethodPrefixAgent.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/NativeMethodPrefixAgent.java	Tue Oct 27 20:06:02 2015 -0700
@@ -28,6 +28,8 @@
  * @author Robert Field, Sun Microsystems
  *
  * @modules java.base/jdk.internal.org.objectweb.asm
+ *          java.management
+ *          java.instrument
  * @run shell/timeout=240 MakeJAR2.sh NativeMethodPrefixAgent NativeMethodPrefixApp 'Can-Retransform-Classes: true' 'Can-Set-Native-Method-Prefix: true'
  * @run main/othervm -javaagent:NativeMethodPrefixAgent.jar NativeMethodPrefixApp
  */
--- a/jdk/test/java/lang/instrument/NoTransformerAddedTest.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/NoTransformerAddedTest.java	Tue Oct 27 20:06:02 2015 -0700
@@ -27,7 +27,6 @@
  * @summary make sure no transformers run when none are registered
  * @author Gabriel Adauto, Wily Technology
  *
- * @modules java.instrument
  * @run build NoTransformerAddedTest
  * @run shell MakeJAR.sh redefineAgent
  * @run main/othervm -javaagent:redefineAgent.jar NoTransformerAddedTest NoTransformerAddedTest
--- a/jdk/test/java/lang/instrument/NullGetObjectSizeTest.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/NullGetObjectSizeTest.java	Tue Oct 27 20:06:02 2015 -0700
@@ -27,7 +27,6 @@
  * @summary make sure getObjectSize(null) throws NullPointerException.
  * @author Robert Field as modified from the code of Gabriel Adauto, Wily Technology
  *
- * @modules java.instrument
  * @run build NullGetObjectSizeTest
  * @run shell MakeJAR.sh basicAgent
  * @run main/othervm -javaagent:basicAgent.jar NullGetObjectSizeTest NullGetObjectSizeTest
--- a/jdk/test/java/lang/instrument/NullRedefineClassesTests.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/NullRedefineClassesTests.java	Tue Oct 27 20:06:02 2015 -0700
@@ -27,7 +27,6 @@
  * @summary make sure redefineClasses throws NullPointerException in the right places.
  * @author Robert Field as modified from the code of Gabriel Adauto, Wily Technology
  *
- * @modules java.instrument
  * @run build NullRedefineClassesTests
  * @run shell MakeJAR.sh redefineAgent
  * @run main/othervm -javaagent:redefineAgent.jar NullRedefineClassesTests NullRedefineClassesTests
--- a/jdk/test/java/lang/instrument/NullTransformerAddTest.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/NullTransformerAddTest.java	Tue Oct 27 20:06:02 2015 -0700
@@ -27,7 +27,6 @@
  * @summary make sure addTransformer(null) throws what it should
  * @author Gabriel Adauto, Wily Technology
  *
- * @modules java.instrument
  * @run build NullTransformerAddTest
  * @run shell MakeJAR.sh redefineAgent
  * @run main/othervm -javaagent:redefineAgent.jar NullTransformerAddTest NullTransformerAddTest
--- a/jdk/test/java/lang/instrument/NullTransformerRemoveTest.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/NullTransformerRemoveTest.java	Tue Oct 27 20:06:02 2015 -0700
@@ -27,7 +27,6 @@
  * @summary make sure removeTransformer(null) throws NullPointerException
  * @author Robert Field as modified from the code of Gabriel Adauto, Wily Technology
  *
- * @modules java.instrument
  * @run build NullTransformerRemoveTest
  * @run shell MakeJAR.sh redefineAgent
  * @run main/othervm -javaagent:redefineAgent.jar NullTransformerRemoveTest NullTransformerRemoveTest
--- a/jdk/test/java/lang/instrument/ParallelTransformerLoader.sh	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/ParallelTransformerLoader.sh	Tue Oct 27 20:06:02 2015 -0700
@@ -26,7 +26,6 @@
 # @summary Test parallel class loading by parallel transformers.
 # @author Daniel D. Daugherty as modified from the code of Daryl Puryear @ Wily
 #
-# @modules java.instrument
 # @run shell MakeJAR3.sh ParallelTransformerLoaderAgent
 # @run build ParallelTransformerLoaderApp
 # @run shell/timeout=240 ParallelTransformerLoader.sh
--- a/jdk/test/java/lang/instrument/PremainClass/InheritAgent0010.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/PremainClass/InheritAgent0010.java	Tue Oct 27 20:06:02 2015 -0700
@@ -27,7 +27,6 @@
  * @summary test config (0,0,1,0): declared 2-arg in agent class
  * @author Daniel D. Daugherty, Sun Microsystems
  *
- * @modules java.instrument
  * @run shell ../MakeJAR3.sh InheritAgent0010
  * @run main/othervm -javaagent:InheritAgent0010.jar DummyMain
  */
--- a/jdk/test/java/lang/instrument/PremainClass/InheritAgent0011.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/PremainClass/InheritAgent0011.java	Tue Oct 27 20:06:02 2015 -0700
@@ -27,7 +27,6 @@
  * @summary test config (0,0,1,1): declared 2-arg and declared 1-arg in agent class
  * @author Daniel D. Daugherty, Sun Microsystems
  *
- * @modules java.instrument
  * @run shell ../MakeJAR3.sh InheritAgent0011
  * @run main/othervm -javaagent:InheritAgent0011.jar DummyMain
  */
--- a/jdk/test/java/lang/instrument/PremainClass/InheritAgent0110.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/PremainClass/InheritAgent0110.java	Tue Oct 27 20:06:02 2015 -0700
@@ -27,7 +27,6 @@
  * @summary test config (0,1,1,0): inherited 1-arg and declared 2-arg in agent class
  * @author Daniel D. Daugherty, Sun Microsystems
  *
- * @modules java.instrument
  * @run shell ../MakeJAR3.sh InheritAgent0110
  * @run main/othervm -javaagent:InheritAgent0110.jar DummyMain
  */
--- a/jdk/test/java/lang/instrument/PremainClass/InheritAgent0111.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/PremainClass/InheritAgent0111.java	Tue Oct 27 20:06:02 2015 -0700
@@ -27,7 +27,6 @@
  * @summary test config (0,1,1,1): inherited 1-arg, declared 2-arg and declared 1-arg in agent class
  * @author Daniel D. Daugherty, Sun Microsystems
  *
- * @modules java.instrument
  * @run shell ../MakeJAR3.sh InheritAgent0111
  * @run main/othervm -javaagent:InheritAgent0111.jar DummyMain
  */
--- a/jdk/test/java/lang/instrument/PremainClass/InheritAgent1000.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/PremainClass/InheritAgent1000.java	Tue Oct 27 20:06:02 2015 -0700
@@ -27,7 +27,6 @@
  * @summary test config (1,0,0,0): inherited 2-arg in agent class
  * @author Daniel D. Daugherty, Sun Microsystems
  *
- * @modules java.instrument
  * @run shell ../MakeJAR3.sh InheritAgent1000
  * @run main/othervm -javaagent:InheritAgent1000.jar DummyMain
  */
--- a/jdk/test/java/lang/instrument/PremainClass/InheritAgent1001.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/PremainClass/InheritAgent1001.java	Tue Oct 27 20:06:02 2015 -0700
@@ -27,7 +27,6 @@
  * @summary test config (1,0,0,1): inherited 2-arg, and declared 1-arg in agent class
  * @author Daniel D. Daugherty, Sun Microsystems
  *
- * @modules java.instrument
  * @run shell ../MakeJAR3.sh InheritAgent1001
  * @run main/othervm -javaagent:InheritAgent1001.jar DummyMain
  */
--- a/jdk/test/java/lang/instrument/PremainClass/InheritAgent1010.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/PremainClass/InheritAgent1010.java	Tue Oct 27 20:06:02 2015 -0700
@@ -27,7 +27,6 @@
  * @summary test config (1,0,1,0): inherited 2-arg, and declared 2-arg in agent class
  * @author Daniel D. Daugherty, Sun Microsystems
  *
- * @modules java.instrument
  * @run shell ../MakeJAR3.sh InheritAgent1010
  * @run main/othervm -javaagent:InheritAgent1010.jar DummyMain
  */
--- a/jdk/test/java/lang/instrument/PremainClass/InheritAgent1011.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/PremainClass/InheritAgent1011.java	Tue Oct 27 20:06:02 2015 -0700
@@ -27,7 +27,6 @@
  * @summary test config (1,0,1,1): inherited 2-arg, declared 2-arg and declared 1-arg in agent class
  * @author Daniel D. Daugherty, Sun Microsystems
  *
- * @modules java.instrument
  * @run shell ../MakeJAR3.sh InheritAgent1011
  * @run main/othervm -javaagent:InheritAgent1011.jar DummyMain
  */
--- a/jdk/test/java/lang/instrument/PremainClass/InheritAgent1100.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/PremainClass/InheritAgent1100.java	Tue Oct 27 20:06:02 2015 -0700
@@ -27,7 +27,6 @@
  * @summary test config (1,1,0,0): inherited 2-arg and inherited 1-arg in agent class
  * @author Daniel D. Daugherty, Sun Microsystems
  *
- * @modules java.instrument
  * @run shell ../MakeJAR3.sh InheritAgent1100
  * @run main/othervm -javaagent:InheritAgent1100.jar DummyMain
  */
--- a/jdk/test/java/lang/instrument/PremainClass/InheritAgent1101.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/PremainClass/InheritAgent1101.java	Tue Oct 27 20:06:02 2015 -0700
@@ -27,7 +27,6 @@
  * @summary test config (1,1,0,1): inherited 2-arg, inherited 1-arg, and declared 1-arg in agent class
  * @author Daniel D. Daugherty, Sun Microsystems
  *
- * @modules java.instrument
  * @run shell ../MakeJAR3.sh InheritAgent1101
  * @run main/othervm -javaagent:InheritAgent1101.jar DummyMain
  */
--- a/jdk/test/java/lang/instrument/PremainClass/InheritAgent1110.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/PremainClass/InheritAgent1110.java	Tue Oct 27 20:06:02 2015 -0700
@@ -27,7 +27,6 @@
  * @summary test config (1,1,1,0): inherited 2-arg, inherited 1-arg, and declared 2-arg in agent class
  * @author Daniel D. Daugherty, Sun Microsystems
  *
- * @modules java.instrument
  * @run shell ../MakeJAR3.sh InheritAgent1110
  * @run main/othervm -javaagent:InheritAgent1110.jar DummyMain
  */
--- a/jdk/test/java/lang/instrument/PremainClass/InheritAgent1111.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/PremainClass/InheritAgent1111.java	Tue Oct 27 20:06:02 2015 -0700
@@ -27,7 +27,6 @@
  * @summary test config (1,1,1,1): inherited 2-arg, inherited 1-arg, declared 2-arg and declared 1-arg in agent class
  * @author Daniel D. Daugherty, Sun Microsystems
  *
- * @modules java.instrument
  * @run shell ../MakeJAR3.sh InheritAgent1111
  * @run main/othervm -javaagent:InheritAgent1111.jar DummyMain
  */
--- a/jdk/test/java/lang/instrument/RedefineBigClass.sh	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/RedefineBigClass.sh	Tue Oct 27 20:06:02 2015 -0700
@@ -28,6 +28,7 @@
 #
 # @key intermittent
 # @modules java.instrument
+#          java.management
 # @run shell MakeJAR3.sh RedefineBigClassAgent 'Can-Redefine-Classes: true'
 # @run build BigClass RedefineBigClassApp NMTHelper
 # @run shell/timeout=600 RedefineBigClass.sh
--- a/jdk/test/java/lang/instrument/RedefineClassWithNativeMethod.sh	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/RedefineClassWithNativeMethod.sh	Tue Oct 27 20:06:02 2015 -0700
@@ -26,7 +26,6 @@
 # @summary Redefine a class with a native method.
 # @author Daniel D. Daugherty as modified from the test submitted by clovis@par.univie.ac.at
 #
-# @modules java.instrument
 # @run shell MakeJAR3.sh RedefineClassWithNativeMethodAgent 'Can-Redefine-Classes: true'
 # @run build RedefineClassWithNativeMethodApp
 # @run shell RedefineClassWithNativeMethod.sh
--- a/jdk/test/java/lang/instrument/RedefineClassesDisabledTest.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/RedefineClassesDisabledTest.java	Tue Oct 27 20:06:02 2015 -0700
@@ -27,7 +27,6 @@
  * @summary test that redefineClasses and isRedefineClassesSupported behave correctly when redefine is not enabled
  * @author Robert Field, Sun Microsystems -- as modified from the work of Gabriel Adauto, Wily Technology
  *
- * @modules java.instrument
  * @run build RedefineClassesDisabledTest
  * @run shell RedefineSetUp.sh
  * @run shell MakeJAR.sh basicAgent
--- a/jdk/test/java/lang/instrument/RedefineClassesTests.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/RedefineClassesTests.java	Tue Oct 27 20:06:02 2015 -0700
@@ -27,7 +27,6 @@
  * @summary insure redefine is supported. exercise a class, then redefine it and do it again
  * @author Gabriel Adauto, Wily Technology
  *
- * @modules java.instrument
  * @run build RedefineClassesTests
  * @run shell RedefineSetUp.sh
  * @run shell MakeJAR.sh redefineAgent
--- a/jdk/test/java/lang/instrument/RedefineMethodAddInvoke.sh	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/RedefineMethodAddInvoke.sh	Tue Oct 27 20:06:02 2015 -0700
@@ -26,7 +26,6 @@
 # @summary Reflexive invocation of newly added methods broken.
 # @author Daniel D. Daugherty
 #
-# @modules java.instrument
 # @run shell MakeJAR3.sh RedefineMethodAddInvokeAgent 'Can-Redefine-Classes: true'
 # @run build RedefineMethodAddInvokeApp
 # @run shell RedefineMethodAddInvoke.sh
--- a/jdk/test/java/lang/instrument/RedefineMethodDelInvoke.sh	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/RedefineMethodDelInvoke.sh	Tue Oct 27 20:06:02 2015 -0700
@@ -27,7 +27,6 @@
 # @author Daniel D. Daugherty
 # @author Serguei Spitsyn
 #
-# @modules java.instrument
 # @run shell MakeJAR3.sh RedefineMethodDelInvokeAgent 'Can-Redefine-Classes: true'
 # @run build RedefineMethodDelInvokeApp
 # @run shell RedefineMethodDelInvoke.sh
--- a/jdk/test/java/lang/instrument/RedefineMethodInBacktrace.sh	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/RedefineMethodInBacktrace.sh	Tue Oct 27 20:06:02 2015 -0700
@@ -27,6 +27,7 @@
 # @author Stefan Karlsson
 #
 # @modules java.instrument
+#          java.management
 # @run shell MakeJAR3.sh RedefineMethodInBacktraceAgent 'Can-Redefine-Classes: true'
 # @run build RedefineMethodInBacktraceTarget RedefineMethodInBacktraceApp
 # @run shell RedefineMethodInBacktrace.sh
--- a/jdk/test/java/lang/instrument/RedefineMethodWithAnnotations.sh	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/RedefineMethodWithAnnotations.sh	Tue Oct 27 20:06:02 2015 -0700
@@ -26,7 +26,6 @@
 # @summary Method annotations are incorrectly set when redefining classes.
 # @author Stefan Karlsson
 #
-# @modules java.instrument
 # @run shell MakeJAR3.sh RedefineMethodWithAnnotationsAgent 'Can-Redefine-Classes: true'
 # @run build RedefineMethodWithAnnotationsTarget RedefineMethodWithAnnotationsApp RedefineMethodWithAnnotationsAnnotations
 # @run shell RedefineMethodWithAnnotations.sh
--- a/jdk/test/java/lang/instrument/RedefineSubclassWithTwoInterfaces.sh	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/RedefineSubclassWithTwoInterfaces.sh	Tue Oct 27 20:06:02 2015 -0700
@@ -28,7 +28,6 @@
 #   verify that the right methods are called.
 # @author Daniel D. Daugherty
 #
-# @modules java.instrument
 # @run shell MakeJAR3.sh RedefineSubclassWithTwoInterfacesAgent 'Can-Redefine-Classes: true'
 # @run build RedefineSubclassWithTwoInterfacesApp
 # @run shell RedefineSubclassWithTwoInterfaces.sh
--- a/jdk/test/java/lang/instrument/RemoveAbsentTransformerTest.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/RemoveAbsentTransformerTest.java	Tue Oct 27 20:06:02 2015 -0700
@@ -27,7 +27,6 @@
  * @summary remove an transformer that was never added
  * @author Gabriel Adauto, Wily Technology
  *
- * @modules java.instrument
  * @run build RemoveAbsentTransformerTest
  * @run shell MakeJAR.sh redefineAgent
  * @run main/othervm -javaagent:redefineAgent.jar RemoveAbsentTransformerTest RemoveAbsentTransformerTest
--- a/jdk/test/java/lang/instrument/RemoveTransformerTest.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/RemoveTransformerTest.java	Tue Oct 27 20:06:02 2015 -0700
@@ -27,7 +27,6 @@
  * @summary simple remove of a transformer that was added
  * @author Gabriel Adauto, Wily Technology
  *
- * @modules java.instrument
  * @run build RemoveTransformerTest
  * @run shell MakeJAR.sh redefineAgent
  * @run main/othervm -javaagent:redefineAgent.jar RemoveTransformerTest RemoveTransformerTest
--- a/jdk/test/java/lang/instrument/RetransformBigClass.sh	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/RetransformBigClass.sh	Tue Oct 27 20:06:02 2015 -0700
@@ -28,6 +28,7 @@
 #
 # @key intermittent
 # @modules java.instrument
+#          java.management
 # @run shell MakeJAR4.sh RetransformBigClassAgent SimpleIdentityTransformer 'Can-Retransform-Classes: true'
 # @run build BigClass RetransformBigClassApp NMTHelper
 # @run shell/timeout=600 RetransformBigClass.sh
--- a/jdk/test/java/lang/instrument/SingleTransformerTest.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/SingleTransformerTest.java	Tue Oct 27 20:06:02 2015 -0700
@@ -27,7 +27,6 @@
  * @summary simple test with one transformer (makes sure it gets called)
  * @author Gabriel Adauto, Wily Technology
  *
- * @modules java.instrument
  * @run build SingleTransformerTest
  * @run shell MakeJAR.sh redefineAgent
  * @run main/othervm -javaagent:redefineAgent.jar SingleTransformerTest SingleTransformerTest
--- a/jdk/test/java/lang/instrument/StressGetObjectSizeTest.sh	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/StressGetObjectSizeTest.sh	Tue Oct 27 20:06:02 2015 -0700
@@ -26,7 +26,6 @@
 # @summary stress getObjectSize() API
 # @author Daniel D. Daugherty as modified from the code of fischman@google.com
 #
-# @modules java.instrument
 # @run build StressGetObjectSizeApp
 # @run shell MakeJAR.sh basicAgent
 # @run shell StressGetObjectSizeTest.sh
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/jdk/test/java/lang/instrument/TEST.properties	Tue Oct 27 20:06:02 2015 -0700
@@ -0,0 +1,1 @@
+modules = java.instrument
--- a/jdk/test/java/lang/instrument/TransformMethodTest.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/TransformMethodTest.java	Tue Oct 27 20:06:02 2015 -0700
@@ -27,7 +27,6 @@
  * @summary test transformer add/remove pairs in sequence
  * @author Gabriel Adauto, Wily Technology
  *
- * @modules java.instrument
  * @run build TransformMethodTest
  * @run shell MakeJAR.sh redefineAgent
  * @run main/othervm -javaagent:redefineAgent.jar TransformMethodTest TransformMethodTest
--- a/jdk/test/java/lang/instrument/TransformerManagementThreadAddTests.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/TransformerManagementThreadAddTests.java	Tue Oct 27 20:06:02 2015 -0700
@@ -27,7 +27,6 @@
  * @summary multi-thread test to exercise sync and contention for adds to transformer registry
  * @author Gabriel Adauto, Wily Technology
  *
- * @modules java.instrument
  * @run build TransformerManagementThreadAddTests
  * @run shell MakeJAR.sh redefineAgent
  * @run main/othervm -javaagent:redefineAgent.jar TransformerManagementThreadAddTests TransformerManagementThreadAddTests
--- a/jdk/test/java/lang/instrument/TransformerManagementThreadRemoveTests.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/TransformerManagementThreadRemoveTests.java	Tue Oct 27 20:06:02 2015 -0700
@@ -27,7 +27,6 @@
  * @summary multi-thread test to exercise sync and contention for removes to transformer registry
  * @author Gabriel Adauto, Wily Technology
  *
- * @modules java.instrument
  * @run build TransformerManagementThreadRemoveTests
  * @run shell MakeJAR.sh redefineAgent
  * @run main/othervm -javaagent:redefineAgent.jar TransformerManagementThreadRemoveTests TransformerManagementThreadRemoveTests
--- a/jdk/test/java/lang/instrument/VerifyLocalVariableTableOnRetransformTest.sh	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/VerifyLocalVariableTableOnRetransformTest.sh	Tue Oct 27 20:06:02 2015 -0700
@@ -29,7 +29,6 @@
 # transform() on a retransform operation.
 # @author Daniel D. Daugherty
 #
-# @modules java.instrument
 # @run build VerifyLocalVariableTableOnRetransformTest
 # @run compile -g DummyClassWithLVT.java
 # @run shell MakeJAR.sh retransformAgent
--- a/jdk/test/java/lang/instrument/appendToClassLoaderSearch/CircularityErrorTest.sh	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/appendToClassLoaderSearch/CircularityErrorTest.sh	Tue Oct 27 20:06:02 2015 -0700
@@ -26,7 +26,6 @@
 # @summary Unit tests for appendToBootstrapClassLoaderSearch and
 #   appendToSystemClasLoaderSearch methods.
 #
-# @modules java.instrument
 # @run shell/timeout=240 CircularityErrorTest.sh
 
 if [ "${TESTSRC}" = "" ]
--- a/jdk/test/java/lang/instrument/appendToClassLoaderSearch/ClassUnloadTest.sh	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/appendToClassLoaderSearch/ClassUnloadTest.sh	Tue Oct 27 20:06:02 2015 -0700
@@ -26,7 +26,6 @@
 # @summary Unit tests for appendToBootstrapClassLoaderSearch and
 #   appendToSystemClasLoaderSearch methods.
 #
-# @modules java.instrument
 # @build ClassUnloadTest
 # @run shell ClassUnloadTest.sh
 
--- a/jdk/test/java/lang/instrument/appendToClassLoaderSearch/run_tests.sh	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/instrument/appendToClassLoaderSearch/run_tests.sh	Tue Oct 27 20:06:02 2015 -0700
@@ -29,7 +29,6 @@
 # @summary Unit tests for appendToBootstrapClassLoaderSearch and
 #   appendToSystemClasLoaderSearch methods.
 #
-# @modules java.instrument
 # @build Agent AgentSupport BootSupport BasicTest PrematureLoadTest DynamicTest
 # @run shell/timeout=240 run_tests.sh
 
--- a/jdk/test/java/lang/invoke/LFCaching/LFMultiThreadCachingTest.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/invoke/LFCaching/LFMultiThreadCachingTest.java	Tue Oct 27 20:06:02 2015 -0700
@@ -28,6 +28,7 @@
  * @summary Test verifies that lambda forms are cached when run with multiple threads
  * @author kshefov
  * @library /lib/testlibrary/jsr292 /lib/testlibrary
+ * @modules java.management
  * @build TestMethods
  * @build LambdaFormTestCase
  * @build LFCachingTestCase
--- a/jdk/test/java/lang/invoke/lambda/LambdaAccessControlDoPrivilegedTest.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/invoke/lambda/LambdaAccessControlDoPrivilegedTest.java	Tue Oct 27 20:06:02 2015 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -26,6 +26,7 @@
  * @bug 8003881
  * @summary tests DoPrivileged action (implemented as lambda expressions) by
  * inserting them into the BootClassPath.
+ * @modules jdk.compiler
  * @compile -XDignore.symbol.file LambdaAccessControlDoPrivilegedTest.java LUtils.java
  * @run main/othervm LambdaAccessControlDoPrivilegedTest
  */
--- a/jdk/test/java/lang/invoke/lambda/LambdaAccessControlTest.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/invoke/lambda/LambdaAccessControlTest.java	Tue Oct 27 20:06:02 2015 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -25,6 +25,7 @@
  * @test
  * @bug 8003881
  * @summary tests Lambda expression with a a security manager at top level
+ * @modules jdk.compiler
  * @compile -XDignore.symbol.file LambdaAccessControlTest.java LUtils.java
  *
  * @run main/othervm LambdaAccessControlTest
--- a/jdk/test/java/lang/invoke/lambda/LambdaAsm.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/invoke/lambda/LambdaAsm.java	Tue Oct 27 20:06:02 2015 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
--- a/jdk/test/java/lang/invoke/lambda/LambdaStackTrace.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/java/lang/invoke/lambda/LambdaStackTrace.java	Tue Oct 27 20:06:02 2015 -0700
@@ -26,6 +26,7 @@
  * @bug 8025636
  * @summary Synthetic frames should be hidden in exceptions
  * @modules java.base/jdk.internal.org.objectweb.asm
+ *          jdk.compiler
  * @compile -XDignore.symbol.file LUtils.java LambdaStackTrace.java
  * @run main LambdaStackTrace
  */
--- a/jdk/test/jdk/lambda/TEST.properties	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/jdk/lambda/TEST.properties	Tue Oct 27 20:06:02 2015 -0700
@@ -3,3 +3,4 @@
 TestNG.dirs = .
 
 javatest.maxOutputSize = 250000
+modules = jdk.compiler
--- a/jdk/test/sun/misc/JarIndex/metaInfFilenames/Basic.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/sun/misc/JarIndex/metaInfFilenames/Basic.java	Tue Oct 27 20:06:02 2015 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -26,6 +26,8 @@
  * @bug 6887710
  * @summary Verify the impact of sun.misc.JarIndex.metaInfFilenames on ServiceLoader
  * @modules jdk.jartool/sun.tools.jar
+ *          jdk.httpserver
+ *          jdk.compiler
  * @run main/othervm Basic
  */
 
--- a/jdk/test/sun/reflect/AnonymousNewInstance/ManyNewInstanceAnonTest.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/sun/reflect/AnonymousNewInstance/ManyNewInstanceAnonTest.java	Tue Oct 27 20:06:02 2015 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -26,7 +26,7 @@
  * @bug 7194897
  * @summary JSR 292: Cannot create more than 16 instances of an anonymous class
  * @modules java.base/sun.misc
- * @modules java.management
+ *          java.management
  * @library /lib/testlibrary
  * @author  Robert Field
  * @compile -XDignore.symbol.file ManyNewInstanceAnonTest.java
--- a/jdk/test/vm/verifier/defaultMethods/DefaultMethodRegressionTestsRun.java	Wed Jul 05 20:56:54 2017 +0200
+++ b/jdk/test/vm/verifier/defaultMethods/DefaultMethodRegressionTestsRun.java	Tue Oct 27 20:06:02 2015 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -25,6 +25,7 @@
  * @test
  * @bug 8003639
  * @summary defaultMethod resolution and verification using an URLClassLoader
+ * @modules jdk.compiler
  * @compile -XDignore.symbol.file=true DefaultMethodRegressionTestsRun.java
  * @run main DefaultMethodRegressionTestsRun
  */