hotspot/test/runtime/modules/Xpatch/XpatchTest.java
changeset 37773 e5b3e9732c3c
parent 36508 5f9eee6b383b
child 38207 2ed792c9481d
--- a/hotspot/test/runtime/modules/Xpatch/XpatchTest.java	Wed Jul 05 21:39:33 2017 +0200
+++ b/hotspot/test/runtime/modules/Xpatch/XpatchTest.java	Tue May 03 09:09:20 2016 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2016, 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
@@ -46,7 +46,7 @@
              InMemoryJavaCompiler.compile("javax.naming.spi.NamingManager", source, "-Xmodule:java.naming"),
              "mods/java.naming");
 
-        ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-Xpatch:mods",
+        ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-Xpatch:java.naming=mods/java.naming",
              "XpatchMain", "javax.naming.spi.NamingManager");
 
         new OutputAnalyzer(pb.start())