8003663: lambda test fails on Windows
authormcimadamore
Tue, 20 Nov 2012 15:43:28 +0000
changeset 14553 b2fd2388dd46
parent 14552 0512d803a331
child 14554 4e29b285c723
8003663: lambda test fails on Windows Summary: fix path separator issue in test Reviewed-by: jjg
langtools/test/tools/javac/lambda/abort/Abort.java
--- 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;