From 3ad2ec4ed461ba16b90166b7e8c0aaba3330c823 Mon Sep 17 00:00:00 2001 From: Dmitrij Pochepko Date: Thu, 23 Jun 2016 17:39:49 +0300 Subject: [PATCH] 8159803: Jittester: FileAlreadyExists exception during tests generation Reviewed-by: iignatyev --- .../jittester/src/jdk/test/lib/jittester/ByteCodeGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hotspot/test/testlibrary/jittester/src/jdk/test/lib/jittester/ByteCodeGenerator.java b/hotspot/test/testlibrary/jittester/src/jdk/test/lib/jittester/ByteCodeGenerator.java index 94957ba3202..ef969bf0f55 100644 --- a/hotspot/test/testlibrary/jittester/src/jdk/test/lib/jittester/ByteCodeGenerator.java +++ b/hotspot/test/testlibrary/jittester/src/jdk/test/lib/jittester/ByteCodeGenerator.java @@ -78,7 +78,7 @@ class ByteCodeGenerator extends TestsGenerator { } catch (Throwable t) { Path errFile = generatorDir.resolve(mainClassName + ".err"); try (PrintWriter pw = new PrintWriter(Files.newOutputStream(errFile, - StandardOpenOption.CREATE_NEW))) { + StandardOpenOption.CREATE, StandardOpenOption.WRITE))) { t.printStackTrace(pw); } catch (IOException e) { t.printStackTrace();