8044051: Test jdk/lambda/vm/InterfaceAccessFlagsTest.java gets IOException during compilation
authorrriggs
Fri, 27 Feb 2015 10:09:06 -0500
changeset 29222 be92cc7636f8
parent 29221 e946919cf487
child 29223 a9f00e8ae58b
8044051: Test jdk/lambda/vm/InterfaceAccessFlagsTest.java gets IOException during compilation Summary: create the gen-separate directory in the current directory to improve robustness Reviewed-by: darcy
jdk/test/jdk/lambda/separate/Compiler.java
--- a/jdk/test/jdk/lambda/separate/Compiler.java	Fri Feb 27 18:03:21 2015 +0300
+++ b/jdk/test/jdk/lambda/separate/Compiler.java	Fri Feb 27 10:09:06 2015 -0500
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -54,7 +54,7 @@
     private static final AtomicInteger counter = new AtomicInteger();
     private static final String targetDir =
         System.getProperty("lambda.separate.targetDirectory",
-            System.getProperty("java.io.tmpdir") + File.separator + "gen-separate");
+            "." + File.separator + "gen-separate");
     private static final File root = new File(targetDir);
     private static ConcurrentHashMap<String,File> cache =
             new ConcurrentHashMap<>();
@@ -189,7 +189,7 @@
                 StandardLocation.CLASS_OUTPUT, Arrays.asList(destDir));
         } catch (IOException e) {
             throw new RuntimeException(
-                "IOException encountered during compilation");
+                "IOException encountered during compilation: " + e.getMessage(), e);
         }
         Boolean result = ct.call();
         if (result == Boolean.FALSE) {