--- old/test/ProblemList.txt 2017-03-08 10:33:09.000000000 +0800 +++ new/test/ProblemList.txt 2017-03-08 10:33:09.000000000 +0800 @@ -186,8 +186,6 @@ java/nio/file/WatchService/MayFlies.java 7158947 solaris-all Solaris 11 java/nio/file/WatchService/LotsOfEvents.java 7158947 solaris-all Solaris 11 -sun/nio/cs/OLD/TestIBMDB.java 8167525 generic-all - ############################################################################ # jdk_rmi --- old/test/com/sun/jndi/dns/Parser.java 2017-03-08 10:33:10.000000000 +0800 +++ new/test/com/sun/jndi/dns/Parser.java 2017-03-08 10:33:10.000000000 +0800 @@ -26,9 +26,6 @@ * @bug 8035105 * @summary DNS resource record parsing * @modules jdk.naming.dns/com.sun.jndi.dns:+open - * - * @compile --add-modules jdk.naming.dns Parser.java - * @run main Parser */ import com.sun.jndi.dns.ResourceRecord; --- old/test/com/sun/jndi/dns/Test6991580.java 2017-03-08 10:33:11.000000000 +0800 +++ new/test/com/sun/jndi/dns/Test6991580.java 2017-03-08 10:33:11.000000000 +0800 @@ -1,6 +1,6 @@ /* - * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2017, 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 @@ -37,7 +37,6 @@ * @summary IPv6 Nameservers in resolv.conf throws NumberFormatException * @modules java.desktop * jdk.naming.dns/com.sun.jndi.dns - * @compile --add-modules jdk.naming.dns IPv6NameserverPlatformParsingTest.java * @run main/manual Test6991580 */ --- old/test/com/sun/jndi/rmi/registry/RegistryContext/ContextWithNullProperties.java 2017-03-08 10:33:12.000000000 +0800 +++ new/test/com/sun/jndi/rmi/registry/RegistryContext/ContextWithNullProperties.java 2017-03-08 10:33:12.000000000 +0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2010, 2017, 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 @@ -29,7 +29,6 @@ * java.rmi/sun.rmi.server java.rmi/sun.rmi.transport java.rmi/sun.rmi.transport.tcp * @library ../../../../../../java/rmi/testlibrary * @build TestLibrary - * @compile --add-modules jdk.naming.rmi ContextWithNullProperties.java * @run main/othervm ContextWithNullProperties */ --- old/test/java/beans/XMLDecoder/8028054/TestConstructorFinder.java 2017-03-08 10:33:13.000000000 +0800 +++ new/test/java/beans/XMLDecoder/8028054/TestConstructorFinder.java 2017-03-08 10:33:13.000000000 +0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2017, 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 @@ -39,7 +39,7 @@ * java.corba * java.xml.bind * @compile -XDignore.symbol.file TestConstructorFinder.java - * @run main/othervm --add-modules=java.activation,java.transaction,java.corba,java.xml.bind TestConstructorFinder + * @run main TestConstructorFinder */ public class TestConstructorFinder { --- old/test/java/beans/XMLDecoder/8028054/TestMethodFinder.java 2017-03-08 10:33:14.000000000 +0800 +++ new/test/java/beans/XMLDecoder/8028054/TestMethodFinder.java 2017-03-08 10:33:14.000000000 +0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2017, 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 @@ -39,7 +39,7 @@ * java.corba * java.xml.bind * @compile -XDignore.symbol.file TestMethodFinder.java - * @run main/othervm --add-modules=java.activation,java.transaction,java.corba,java.xml.bind TestMethodFinder + * @run main TestMethodFinder */ public class TestMethodFinder { --- old/test/java/lang/ClassLoader/platformClassLoader/DefinePlatformClass.java 2017-03-08 10:33:15.000000000 +0800 +++ new/test/java/lang/ClassLoader/platformClassLoader/DefinePlatformClass.java 2017-03-08 10:33:15.000000000 +0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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,6 @@ * @summary Test java.* class defined by the platform class loader * @modules jdk.zipfs/java.fake * @build jdk.zipfs/java.fake.Fake - * @compile --add-modules jdk.zipfs DefinePlatformClass.java * @run main DefinePlatformClass */ --- old/test/javax/smartcardio/CommandAPDUTest.java 2017-03-08 10:33:16.000000000 +0800 +++ new/test/javax/smartcardio/CommandAPDUTest.java 2017-03-08 10:33:16.000000000 +0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2007, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2007, 2017, 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,8 +26,7 @@ * @bug 8049021 * @summary Test different constructors for CommandAPDU and check CLA,INS,NC,NE, * P1,and P2 - * @compile --add-modules=java.smartcardio CommandAPDUTest.java - * @run testng/othervm --add-modules=java.smartcardio CommandAPDUTest + * @run testng CommandAPDUTest */ import java.nio.ByteBuffer; import javax.smartcardio.CommandAPDU; --- old/test/javax/smartcardio/HistoricalBytes.java 2017-03-08 10:33:17.000000000 +0800 +++ new/test/javax/smartcardio/HistoricalBytes.java 2017-03-08 10:33:17.000000000 +0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2006, 2017, 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,8 +26,6 @@ * @bug 6445367 * @summary Verify that ATR.getHistoricalBytes() works * @author Andreas Sterbenz - * @compile --add-modules=java.smartcardio HistoricalBytes.java - * @run main/othervm --add-modules=java.smartcardio HistoricalBytes */ import java.util.Arrays; --- old/test/javax/smartcardio/ResponseAPDUTest.java 2017-03-08 10:33:18.000000000 +0800 +++ new/test/javax/smartcardio/ResponseAPDUTest.java 2017-03-08 10:33:18.000000000 +0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2007, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2007, 2017, 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,8 +25,7 @@ * @test * @bug 8049021 * @summary Construct ResponseAPDU from byte array and check NR< SW, SW1 and SW2 - * @compile --add-modules=java.smartcardio ResponseAPDUTest.java - * @run testng/othervm --add-modules=java.smartcardio ResponseAPDUTest + * @run testng ResponseAPDUTest */ import javax.smartcardio.ResponseAPDU; import static org.testng.Assert.*; --- old/test/javax/smartcardio/Serialize.java 2017-03-08 10:33:19.000000000 +0800 +++ new/test/javax/smartcardio/Serialize.java 2017-03-08 10:33:19.000000000 +0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2006, 2017, 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,8 +26,6 @@ * @bug 6445367 * @summary make sure serialization works * @author Andreas Sterbenz - * @compile --add-modules=java.smartcardio Serialize.java - * @run main/othervm --add-modules=java.smartcardio Serialize */ import java.io.*; --- old/test/javax/smartcardio/TerminalFactorySpiTest.java 2017-03-08 10:33:20.000000000 +0800 +++ new/test/javax/smartcardio/TerminalFactorySpiTest.java 2017-03-08 10:33:20.000000000 +0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2007, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2007, 2017, 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,8 +25,7 @@ * @test * @bug 8049021 * @summary Test if we can write new provider for smart card - * @compile --add-modules=java.smartcardio TerminalFactorySpiTest.java - * @run main/othervm/java.security.policy=policy --add-modules=java.smartcardio TerminalFactorySpiTest + * @run main/othervm/java.security.policy=policy TerminalFactorySpiTest */ import java.security.Provider; import java.security.Security; --- old/test/javax/smartcardio/TestCardPermission.java 2017-03-08 10:33:21.000000000 +0800 +++ new/test/javax/smartcardio/TestCardPermission.java 2017-03-08 10:33:21.000000000 +0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2017, 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,8 +26,6 @@ * @bug 6293767 6469513 * @summary Test for the CardPermission class * @author Andreas Sterbenz - * @compile --add-modules=java.smartcardio TestCardPermission.java - * @run main/othervm --add-modules=java.smartcardio TestCardPermission */ import javax.smartcardio.*; --- old/test/javax/smartcardio/TestCommandAPDU.java 2017-03-08 10:33:22.000000000 +0800 +++ new/test/javax/smartcardio/TestCommandAPDU.java 2017-03-08 10:33:22.000000000 +0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2017, 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 @@ -27,8 +27,6 @@ * @summary Test for the CommandAPDU class * @author Andreas Sterbenz * @key randomness - * @compile --add-modules=java.smartcardio TestCommandAPDU.java - * @run main/othervm --add-modules=java.smartcardio TestCommandAPDU */ import java.util.*; --- old/test/sun/security/ec/TestEC.java 2017-03-08 10:33:23.000000000 +0800 +++ new/test/sun/security/ec/TestEC.java 2017-03-08 10:33:23.000000000 +0800 @@ -35,7 +35,6 @@ * @library ../pkcs11/sslecc * @library ../../../java/security/testlibrary * @modules jdk.crypto.cryptoki/sun.security.pkcs11.wrapper - * @compile --add-modules jdk.crypto.cryptoki TestEC.java * @run main/othervm -Djdk.tls.namedGroups="secp256r1,sect193r1" TestEC * @run main/othervm/java.security.policy=TestEC.policy -Djdk.tls.namedGroups="secp256r1,sect193r1" TestEC */ --- old/test/sun/security/mscapi/IsSunMSCAPIAvailable.java 2017-03-08 10:33:24.000000000 +0800 +++ new/test/sun/security/mscapi/IsSunMSCAPIAvailable.java 2017-03-08 10:33:24.000000000 +0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2017, 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,6 @@ * @bug 6318171 6931562 * @requires os.family == "windows" * @modules jdk.crypto.mscapi/sun.security.mscapi - * @compile --add-modules jdk.crypto.mscapi IsSunMSCAPIAvailable.java * @run main/othervm IsSunMSCAPIAvailable */ --- old/test/sun/security/pkcs11/ec/TestCurves.java 2017-03-08 10:33:25.000000000 +0800 +++ new/test/sun/security/pkcs11/ec/TestCurves.java 2017-03-08 10:33:25.000000000 +0800 @@ -28,7 +28,6 @@ * @author Andreas Sterbenz * @library .. * @modules jdk.crypto.cryptoki/sun.security.pkcs11.wrapper - * @compile --add-modules jdk.crypto.cryptoki TestCurves.java * @run main/othervm TestCurves * @run main/othervm TestCurves sm * @key randomness --- old/test/sun/security/provider/PolicyFile/Modules.java 2017-03-08 10:33:26.000000000 +0800 +++ new/test/sun/security/provider/PolicyFile/Modules.java 2017-03-08 10:33:26.000000000 +0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2017, 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 @@ -39,7 +39,6 @@ * jdk.net * jdk.security.auth * jdk.security.jgss - * @compile --add-modules=java.xml.ws,java.smartcardio Modules.java * @run main/othervm/java.security.policy==modules.policy Modules */ --- /dev/null 2017-03-08 10:33:27.000000000 +0800 +++ new/test/javax/smartcardio/TEST.properties 2017-03-08 10:33:27.000000000 +0800 @@ -0,0 +1 @@ +modules = java.smartcardio