changeset 13547:9d56b977df96

Test updates in preparation for setAccessible changes
author alanb
date Thu, 30 Jul 2015 12:33:38 +0100
parents aba5be17a1e8
children 958c08e86370
files test/ProblemList.jake.txt test/com/sun/crypto/provider/Cipher/AES/TestGHASH.java test/javax/xml/jaxp/PrecisionDecimalDV/XPrecisionDecimalToString.java test/jdk/jigsaw/functional/container/src/app1/module-info.java test/jdk/jigsaw/functional/container/src/app2/module-info.java test/jdk/jigsaw/functional/container/src/container/container/Main.java test/sun/invoke/anon/ConstantPoolPatch/OptimalMapSize.java test/sun/security/provider/FileInputStreamPool/FileInputStreamPoolTest.java test/sun/security/ssl/ExtensionType/OptimalListSize.java
diffstat 9 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/ProblemList.jake.txt	Thu Jul 30 11:27:10 2015 +0100
+++ b/test/ProblemList.jake.txt	Thu Jul 30 12:33:38 2015 +0100
@@ -170,6 +170,9 @@
 # 8078484
 sun/rmi/rmic/newrmic/equivalence/run.sh				generic-all
 
+# 8132672
+java/rmi/transport/dgcDeadLock/DGCDeadLock.java			generic-all
+
 ############################################################################
 
 # jdk_other
--- a/test/com/sun/crypto/provider/Cipher/AES/TestGHASH.java	Thu Jul 30 11:27:10 2015 +0100
+++ b/test/com/sun/crypto/provider/Cipher/AES/TestGHASH.java	Thu Jul 30 12:33:38 2015 +0100
@@ -25,6 +25,7 @@
 /*
  * @test
  * @bug 8069072
+ * @modules java.base/com.sun.crypto.provider
  * @summary Test vectors for com.sun.crypto.provider.GHASH.
  *
  * Single iteration to verify software-only GHASH algorithm.
--- a/test/javax/xml/jaxp/PrecisionDecimalDV/XPrecisionDecimalToString.java	Thu Jul 30 11:27:10 2015 +0100
+++ b/test/javax/xml/jaxp/PrecisionDecimalDV/XPrecisionDecimalToString.java	Thu Jul 30 12:33:38 2015 +0100
@@ -31,6 +31,7 @@
  *   in com.sun.org.apache.xerces.internal.impl.dv.xs.PrecisionDecimalDV$XPrecisionDecimal.
  *   Since that method is private the test unfortunately needs to use reflection
  *   to invoke the method.
+ * @modules java.xml/com.sun.org.apache.xerces.internal.impl.dv.xs
  * @run main XPrecisionDecimalToString
  * @author Daniel Fuchs
  */
--- a/test/jdk/jigsaw/functional/container/src/app1/module-info.java	Thu Jul 30 11:27:10 2015 +0100
+++ b/test/jdk/jigsaw/functional/container/src/app1/module-info.java	Thu Jul 30 12:33:38 2015 +0100
@@ -23,4 +23,5 @@
 module app1 {
     requires java.base;
     requires java.xml.ws;
+    exports app1;
 }
--- a/test/jdk/jigsaw/functional/container/src/app2/module-info.java	Thu Jul 30 11:27:10 2015 +0100
+++ b/test/jdk/jigsaw/functional/container/src/app2/module-info.java	Thu Jul 30 12:33:38 2015 +0100
@@ -23,4 +23,5 @@
 module app2 {
     requires java.base;
     requires java.ws.rs;
+    exports app2;
 }
--- a/test/jdk/jigsaw/functional/container/src/container/container/Main.java	Thu Jul 30 11:27:10 2015 +0100
+++ b/test/jdk/jigsaw/functional/container/src/container/container/Main.java	Thu Jul 30 12:33:38 2015 +0100
@@ -88,8 +88,8 @@
 
         // invoke application main method
         Class<?> c = layer.findLoader(appModuleName).loadClass(appMainClass);
+        Main.class.getModule().addReads(c.getModule());
         Method mainMethod = c.getMethod("main", String[].class);
-        mainMethod.setAccessible(true);
 
         // set TCCL as that is the EE thing to do
         ClassLoader tccl = Thread.currentThread().getContextClassLoader();
--- a/test/sun/invoke/anon/ConstantPoolPatch/OptimalMapSize.java	Thu Jul 30 11:27:10 2015 +0100
+++ b/test/sun/invoke/anon/ConstantPoolPatch/OptimalMapSize.java	Thu Jul 30 12:33:38 2015 +0100
@@ -26,6 +26,7 @@
  * @bug 8080535
  * @summary Static storages should be initialized with optimal capacity
  * @library /lib/testlibrary
+ * @modules java.base/sun.invoke.anon
  * @build jdk.testlibrary.OptimalCapacity
  * @run main OptimalMapSize
  */
--- a/test/sun/security/provider/FileInputStreamPool/FileInputStreamPoolTest.java	Thu Jul 30 11:27:10 2015 +0100
+++ b/test/sun/security/provider/FileInputStreamPool/FileInputStreamPoolTest.java	Thu Jul 30 12:33:38 2015 +0100
@@ -24,6 +24,7 @@
 /**
  * @test
  * @bug 8047769
+ * @modules java.base/sun.security.provider
  * @summary SecureRandom should be more frugal with file descriptors
  */
 
--- a/test/sun/security/ssl/ExtensionType/OptimalListSize.java	Thu Jul 30 11:27:10 2015 +0100
+++ b/test/sun/security/ssl/ExtensionType/OptimalListSize.java	Thu Jul 30 12:33:38 2015 +0100
@@ -26,6 +26,7 @@
  * @bug 8080535
  * @summary Expected size of Character.UnicodeBlock.map is not optimal
  * @library /lib/testlibrary
+ * @modules java.base/sun.security.ssl
  * @build jdk.testlibrary.OptimalCapacity
  * @run main OptimalListSize
  */