6759796: test/tools/javac/6348193/T6348193.java fails if there are empty entries on the bootclasspath
Reviewed-by: darcy
--- 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;