8159803: Jittester: FileAlreadyExists exception during tests generation
Reviewed-by: iignatyev
This commit is contained in:
parent
7aca8d6fe4
commit
3ad2ec4ed4
@ -78,7 +78,7 @@ class ByteCodeGenerator extends TestsGenerator {
|
|||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
Path errFile = generatorDir.resolve(mainClassName + ".err");
|
Path errFile = generatorDir.resolve(mainClassName + ".err");
|
||||||
try (PrintWriter pw = new PrintWriter(Files.newOutputStream(errFile,
|
try (PrintWriter pw = new PrintWriter(Files.newOutputStream(errFile,
|
||||||
StandardOpenOption.CREATE_NEW))) {
|
StandardOpenOption.CREATE, StandardOpenOption.WRITE))) {
|
||||||
t.printStackTrace(pw);
|
t.printStackTrace(pw);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
t.printStackTrace();
|
t.printStackTrace();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user