Skip to content

Commit

Permalink
Matthias suggested writing into the files, why they were created.
Browse files Browse the repository at this point in the history
  • Loading branch information
nizarbenalla committed May 22, 2024
1 parent 07ba292 commit 3fb5988
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1999, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 2024, 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
Expand Down Expand Up @@ -374,7 +374,7 @@ void printArgumentsToFile(String... params) {
Path tmpDir = Paths.get(System.getProperty("java.io.tmpdir"));
Path out = tmpDir.resolve(String.format("javac.%s.args",
new SimpleDateFormat("yyyyMMdd_HHmmss").format(Calendar.getInstance().getTime())));
String strOut = "";
String strOut = "# javac crashed, this report includes the parameters passed to it in the @-file format\n";
try {
try (Writer w = Files.newBufferedWriter(out)) {
for (String param : params) {
Expand Down

0 comments on commit 3fb5988

Please sign in to comment.