mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-06 14:10:36 +00:00
8238366: CTW runner closes standard output on exit
Reviewed-by: adinn, iignatyev
This commit is contained in:
parent
ac69c7894d
commit
f1a2c6019e
@ -99,9 +99,11 @@ public class CompileTheWorld {
|
||||
} catch (Throwable t){
|
||||
t.printStackTrace(ERR);
|
||||
} finally {
|
||||
try {
|
||||
OUT.close();
|
||||
} catch (Throwable ignore) {
|
||||
if (OUT != System.out) {
|
||||
try {
|
||||
OUT.close();
|
||||
} catch (Throwable ignore) {
|
||||
}
|
||||
}
|
||||
// <clinit> might have started new threads
|
||||
System.exit(passed ? 0 : 1);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user