< prev index next >

test/java/lang/instrument/RedefineModuleTest.java

Print this page
rev 16783 : 8176176: fix @modules in jdk_svc tests
Reviewed-by: duke


   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /**
  25  * @test
  26  * @summary Basic test for redefineModule
  27  * @modules java.instrument
  28  * @build java.base/java.lang.TestProvider
  29  *        java.base/jdk.internal.test.TestProviderImpl1
  30  *        java.base/jdk.internal.test.TestProviderImpl2
  31  * @run shell MakeJAR3.sh RedefineModuleAgent
  32  * @run testng/othervm -javaagent:RedefineModuleAgent.jar RedefineModuleTest
  33  */
  34 
  35 import java.lang.TestProvider;
  36 import java.lang.instrument.Instrumentation;
  37 import java.lang.reflect.Layer;
  38 import java.lang.reflect.Module;
  39 import java.net.URLStreamHandler;
  40 import java.net.spi.URLStreamHandlerProvider;
  41 import java.nio.file.FileSystems;
  42 import java.util.ArrayList;
  43 import java.util.Collection;
  44 import java.util.HashMap;
  45 import java.util.HashSet;
  46 import java.util.List;
  47 import java.util.Map;




   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /**
  25  * @test
  26  * @summary Basic test for redefineModule
  27  *
  28  * @build java.base/java.lang.TestProvider
  29  *        java.base/jdk.internal.test.TestProviderImpl1
  30  *        java.base/jdk.internal.test.TestProviderImpl2
  31  * @run shell MakeJAR3.sh RedefineModuleAgent
  32  * @run testng/othervm -javaagent:RedefineModuleAgent.jar RedefineModuleTest
  33  */
  34 
  35 import java.lang.TestProvider;
  36 import java.lang.instrument.Instrumentation;
  37 import java.lang.reflect.Layer;
  38 import java.lang.reflect.Module;
  39 import java.net.URLStreamHandler;
  40 import java.net.spi.URLStreamHandlerProvider;
  41 import java.nio.file.FileSystems;
  42 import java.util.ArrayList;
  43 import java.util.Collection;
  44 import java.util.HashMap;
  45 import java.util.HashSet;
  46 import java.util.List;
  47 import java.util.Map;


< prev index next >