equal
deleted
inserted
replaced
24 /** |
24 /** |
25 * @test |
25 * @test |
26 * @bug 6399602 |
26 * @bug 6399602 |
27 * @summary Verify that files are created relative to sibling |
27 * @summary Verify that files are created relative to sibling |
28 * @author Peter von der Ah\u00e9 |
28 * @author Peter von der Ah\u00e9 |
29 * @ignore 6877223 test ignored because of issues with File.toUri on Windows (6877206) |
|
30 */ |
29 */ |
31 |
30 |
32 import java.io.File; |
31 import java.io.File; |
33 import java.io.IOException; |
32 import java.io.IOException; |
34 import java.util.Arrays; |
33 import java.util.Arrays; |
46 .iterator().next(); |
45 .iterator().next(); |
47 JavaFileObject classFile = fm.getJavaFileForOutput(CLASS_OUTPUT, |
46 JavaFileObject classFile = fm.getJavaFileForOutput(CLASS_OUTPUT, |
48 "foo.bar.baz.Test", |
47 "foo.bar.baz.Test", |
49 CLASS, |
48 CLASS, |
50 sibling); |
49 sibling); |
51 String name = |
50 File file = new File("Test.class").getAbsoluteFile(); |
52 new File("Test.class").getAbsolutePath().replace(File.separatorChar, '/'); |
51 if (!classFile.toUri().equals(file.toURI())) |
53 if (!classFile.toUri().getPath().equals(name)) |
52 throw new AssertionError("Expected " + file.toURI() + ", got " + |
54 throw new AssertionError("Expected " + name + ", got " + |
53 classFile.toUri()); |
55 classFile.toUri().getPath()); |
|
56 } |
54 } |
57 } |
55 } |