6759796: test/tools/javac/6348193/T6348193.java fails if there are empty entries on the bootclasspath
authorjjg
Wed, 15 Oct 2008 13:20:03 -0700
changeset 1478 1847a080da9a
parent 1477 aa16dead2793
child 1479 e6dbb00a12d9
6759796: test/tools/javac/6348193/T6348193.java fails if there are empty entries on the bootclasspath Reviewed-by: darcy
langtools/test/tools/javac/processing/6348193/T6348193.java
--- a/langtools/test/tools/javac/processing/6348193/T6348193.java	Wed Oct 15 11:13:23 2008 -0700
+++ b/langtools/test/tools/javac/processing/6348193/T6348193.java	Wed Oct 15 13:20:03 2008 -0700
@@ -118,10 +118,7 @@
 
     // set up or remove a service configuration file
     static void installConfigFile(NoGoodBad type) throws IOException {
-        URL self = T6348193.class.getClassLoader().getResource(myName+".class");
-        if (!self.getProtocol().equals("file"))
-            throw new AssertionError();
-        File f = new File(self.getFile()).getParentFile();
+        File f = new File(System.getProperty("test.classes", "."));
         for (String s: new String[] { "META-INF", "services", Processor.class.getName() })
             f = new File(f, s);
         BufferedWriter out;