changeset 1478:1847a080da9a

6759796: test/tools/javac/6348193/T6348193.java fails if there are empty entries on the bootclasspath Reviewed-by: darcy
author jjg
date Wed, 15 Oct 2008 13:20:03 -0700
parents aa16dead2793
children e6dbb00a12d9
files langtools/test/tools/javac/processing/6348193/T6348193.java
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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;