Wed, 15 Oct 2008 13:20:03 -0700
6759796: test/tools/javac/6348193/T6348193.java fails if there are empty entries on the bootclasspath
Reviewed-by: darcy
test/tools/javac/processing/6348193/T6348193.java | file | annotate | diff | comparison | revisions |
1.1 --- a/test/tools/javac/processing/6348193/T6348193.java Wed Oct 15 11:13:23 2008 -0700 1.2 +++ b/test/tools/javac/processing/6348193/T6348193.java Wed Oct 15 13:20:03 2008 -0700 1.3 @@ -118,10 +118,7 @@ 1.4 1.5 // set up or remove a service configuration file 1.6 static void installConfigFile(NoGoodBad type) throws IOException { 1.7 - URL self = T6348193.class.getClassLoader().getResource(myName+".class"); 1.8 - if (!self.getProtocol().equals("file")) 1.9 - throw new AssertionError(); 1.10 - File f = new File(self.getFile()).getParentFile(); 1.11 + File f = new File(System.getProperty("test.classes", ".")); 1.12 for (String s: new String[] { "META-INF", "services", Processor.class.getName() }) 1.13 f = new File(f, s); 1.14 BufferedWriter out;