8003663: lambda test fails on Windows
Summary: fix path separator issue in test
Reviewed-by: jjg
--- a/langtools/test/tools/javac/lambda/abort/Abort.java Tue Nov 20 07:25:11 2012 -0800
+++ b/langtools/test/tools/javac/lambda/abort/Abort.java Tue Nov 20 15:43:28 2012 +0000
@@ -85,7 +85,7 @@
}
SimpleJavaFileObject asJFO(java.io.File dir) {
- return new SimpleJavaFileObject(URI.create(dir.getAbsolutePath() + "/" + filename), JavaFileObject.Kind.SOURCE) {
+ return new SimpleJavaFileObject(new java.io.File(dir, filename).toURI(), JavaFileObject.Kind.SOURCE) {
@Override
public CharSequence getCharContent(boolean ignoreEncodingErrors) throws IOException {
return contents;