changeset 12971:2e63fa2efdb1

8140336: Add @modules for exported dependencies to jdk_core tests Reviewed-by: alanb, mchung
author shurailine
date Tue, 27 Oct 2015 20:06:02 -0700
parents 0d0a63b32559
children 03453e4301fc
files test/java/lang/ProcessHandle/TEST.properties test/java/lang/annotation/AnnotationType/AnnotationTypeDeadlockTest.java test/java/lang/instrument/AddTransformerTest.java test/java/lang/instrument/AppendToBootstrapClassPathTest.java test/java/lang/instrument/AppendToClassPathTest.java test/java/lang/instrument/BootClassPath/BootClassPathTest.sh test/java/lang/instrument/FromShutdownHook.java test/java/lang/instrument/GetAllLoadedClassesTest.java test/java/lang/instrument/GetInitiatedClassesTest.java test/java/lang/instrument/GetObjectSizeTest.java test/java/lang/instrument/IsModifiableClassAgent.java test/java/lang/instrument/ManifestTest.sh test/java/lang/instrument/NativeMethodPrefixAgent.java test/java/lang/instrument/NoTransformerAddedTest.java test/java/lang/instrument/NullGetObjectSizeTest.java test/java/lang/instrument/NullRedefineClassesTests.java test/java/lang/instrument/NullTransformerAddTest.java test/java/lang/instrument/NullTransformerRemoveTest.java test/java/lang/instrument/ParallelTransformerLoader.sh test/java/lang/instrument/PremainClass/InheritAgent0010.java test/java/lang/instrument/PremainClass/InheritAgent0011.java test/java/lang/instrument/PremainClass/InheritAgent0110.java test/java/lang/instrument/PremainClass/InheritAgent0111.java test/java/lang/instrument/PremainClass/InheritAgent1000.java test/java/lang/instrument/PremainClass/InheritAgent1001.java test/java/lang/instrument/PremainClass/InheritAgent1010.java test/java/lang/instrument/PremainClass/InheritAgent1011.java test/java/lang/instrument/PremainClass/InheritAgent1100.java test/java/lang/instrument/PremainClass/InheritAgent1101.java test/java/lang/instrument/PremainClass/InheritAgent1110.java test/java/lang/instrument/PremainClass/InheritAgent1111.java test/java/lang/instrument/RedefineBigClass.sh test/java/lang/instrument/RedefineClassWithNativeMethod.sh test/java/lang/instrument/RedefineClassesDisabledTest.java test/java/lang/instrument/RedefineClassesTests.java test/java/lang/instrument/RedefineMethodAddInvoke.sh test/java/lang/instrument/RedefineMethodDelInvoke.sh test/java/lang/instrument/RedefineMethodInBacktrace.sh test/java/lang/instrument/RedefineMethodWithAnnotations.sh test/java/lang/instrument/RedefineSubclassWithTwoInterfaces.sh test/java/lang/instrument/RemoveAbsentTransformerTest.java test/java/lang/instrument/RemoveTransformerTest.java test/java/lang/instrument/RetransformBigClass.sh test/java/lang/instrument/SingleTransformerTest.java test/java/lang/instrument/StressGetObjectSizeTest.sh test/java/lang/instrument/TEST.properties test/java/lang/instrument/TransformMethodTest.java test/java/lang/instrument/TransformerManagementThreadAddTests.java test/java/lang/instrument/TransformerManagementThreadRemoveTests.java test/java/lang/instrument/VerifyLocalVariableTableOnRetransformTest.sh test/java/lang/instrument/appendToClassLoaderSearch/CircularityErrorTest.sh test/java/lang/instrument/appendToClassLoaderSearch/ClassUnloadTest.sh test/java/lang/instrument/appendToClassLoaderSearch/run_tests.sh test/java/lang/invoke/LFCaching/LFMultiThreadCachingTest.java test/java/lang/invoke/lambda/LambdaAccessControlDoPrivilegedTest.java test/java/lang/invoke/lambda/LambdaAccessControlTest.java test/java/lang/invoke/lambda/LambdaAsm.java test/java/lang/invoke/lambda/LambdaStackTrace.java test/jdk/lambda/TEST.properties test/sun/misc/JarIndex/metaInfFilenames/Basic.java test/sun/reflect/AnonymousNewInstance/ManyNewInstanceAnonTest.java test/vm/verifier/defaultMethods/DefaultMethodRegressionTestsRun.java
diffstat 62 files changed, 24 insertions(+), 55 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/lang/ProcessHandle/TEST.properties	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/annotation/AnnotationType/AnnotationTypeDeadlockTest.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/AddTransformerTest.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/AppendToBootstrapClassPathTest.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/AppendToClassPathTest.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/BootClassPath/BootClassPathTest.sh	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/FromShutdownHook.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/GetAllLoadedClassesTest.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/GetInitiatedClassesTest.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/GetObjectSizeTest.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/IsModifiableClassAgent.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/ManifestTest.sh	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/NativeMethodPrefixAgent.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/NoTransformerAddedTest.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/NullGetObjectSizeTest.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/NullRedefineClassesTests.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/NullTransformerAddTest.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/NullTransformerRemoveTest.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/ParallelTransformerLoader.sh	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/PremainClass/InheritAgent0010.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/PremainClass/InheritAgent0011.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/PremainClass/InheritAgent0110.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/PremainClass/InheritAgent0111.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/PremainClass/InheritAgent1000.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/PremainClass/InheritAgent1001.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/PremainClass/InheritAgent1010.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/PremainClass/InheritAgent1011.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/PremainClass/InheritAgent1100.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/PremainClass/InheritAgent1101.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/PremainClass/InheritAgent1110.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/PremainClass/InheritAgent1111.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/RedefineBigClass.sh	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/RedefineClassWithNativeMethod.sh	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/RedefineClassesDisabledTest.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/RedefineClassesTests.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/RedefineMethodAddInvoke.sh	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/RedefineMethodDelInvoke.sh	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/RedefineMethodInBacktrace.sh	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/RedefineMethodWithAnnotations.sh	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/RedefineSubclassWithTwoInterfaces.sh	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/RemoveAbsentTransformerTest.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/RemoveTransformerTest.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/RetransformBigClass.sh	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/SingleTransformerTest.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/StressGetObjectSizeTest.sh	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/TEST.properties	Tue Oct 27 20:06:02 2015 -0700
@@ -0,0 +1,1 @@
+modules = java.instrument
--- a/test/java/lang/instrument/TransformMethodTest.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/TransformerManagementThreadAddTests.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/TransformerManagementThreadRemoveTests.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/VerifyLocalVariableTableOnRetransformTest.sh	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/appendToClassLoaderSearch/CircularityErrorTest.sh	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/appendToClassLoaderSearch/ClassUnloadTest.sh	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/instrument/appendToClassLoaderSearch/run_tests.sh	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/invoke/LFCaching/LFMultiThreadCachingTest.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/invoke/lambda/LambdaAccessControlDoPrivilegedTest.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/invoke/lambda/LambdaAccessControlTest.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/invoke/lambda/LambdaAsm.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/java/lang/invoke/lambda/LambdaStackTrace.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/jdk/lambda/TEST.properties	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/sun/misc/JarIndex/metaInfFilenames/Basic.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/sun/reflect/AnonymousNewInstance/ManyNewInstanceAnonTest.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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/test/vm/verifier/defaultMethods/DefaultMethodRegressionTestsRun.java	Tue Oct 27 10:15:38 2015 -0700
+++ b/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
  */