Skip to content

Commit eb64e7f

Browse files
theaoqijerboaa
authored andcommitted
8044051: Test jdk/lambda/vm/InterfaceAccessFlagsTest.java gets IOException during compilation
Create the gen-separate directory in the current directory to improve robustness Backport-of: 9b8b6695108762063f96a275d9567bed72b88126
1 parent 8a5c3db commit eb64e7f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jdk/test/jdk/lambda/separate/Compiler.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -54,7 +54,7 @@ public enum Flags {
5454
private static final AtomicInteger counter = new AtomicInteger();
5555
private static final String targetDir =
5656
System.getProperty("lambda.separate.targetDirectory",
57-
System.getProperty("java.io.tmpdir") + File.separator + "gen-separate");
57+
"." + File.separator + "gen-separate");
5858
private static final File root = new File(targetDir);
5959
private static ConcurrentHashMap<String,File> cache =
6060
new ConcurrentHashMap<>();
@@ -189,7 +189,7 @@ private File compileOne(Type type) {
189189
StandardLocation.CLASS_OUTPUT, Arrays.asList(destDir));
190190
} catch (IOException e) {
191191
throw new RuntimeException(
192-
"IOException encountered during compilation");
192+
"IOException encountered during compilation: " + e.getMessage(), e);
193193
}
194194
Boolean result = ct.call();
195195
if (result == Boolean.FALSE) {

0 commit comments

Comments
 (0)