8030795: java/nio/file/Files/probeContentType/ForceLoad.java failing with ServiceConfigurationError without jtreg -agentvm option
authoralanb
Mon, 03 Feb 2014 14:18:45 +0000
changeset 22632 4953e3d7f07e
parent 22631 ac85b05a53f4
child 22633 303b60d0f31a
8030795: java/nio/file/Files/probeContentType/ForceLoad.java failing with ServiceConfigurationError without jtreg -agentvm option Reviewed-by: michaelm
jdk/test/java/nio/file/Files/probeContentType/ForceLoad.java
--- a/jdk/test/java/nio/file/Files/probeContentType/ForceLoad.java	Mon Feb 03 14:00:43 2014 +0000
+++ b/jdk/test/java/nio/file/Files/probeContentType/ForceLoad.java	Mon Feb 03 14:18:45 2014 +0000
@@ -25,6 +25,8 @@
  * @bug 4313887
  * @summary Test library dependencies by invoking Files.probeContentType
  *     before other methods that would cause nio.dll to be loaded.
+ * @build ForceLoad SimpleFileTypeDetector
+ * @run main/othervm ForceLoad
  */
 
 import java.nio.file.*;