Skip to content

Commit ff364c1

Browse files
afshin-zafariAlan Bateman
authored and
Alan Bateman
committedMar 3, 2023
8301622: ProcessTools.java compilation gets ThreadDeath deprecation warning
Reviewed-by: dholmes, alanb
1 parent df9aad0 commit ff364c1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed
 

‎test/lib/jdk/test/lib/process/ProcessTools.java

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2023, 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
@@ -32,6 +32,7 @@
3232
import java.io.InputStream;
3333
import java.io.OutputStream;
3434
import java.io.PrintStream;
35+
import java.lang.Thread.State;
3536
import java.lang.reflect.InvocationTargetException;
3637
import java.lang.reflect.Method;
3738
import java.nio.charset.Charset;
@@ -823,9 +824,6 @@ static class MainThreadGroup extends ThreadGroup {
823824
}
824825

825826
public void uncaughtException(Thread t, Throwable e) {
826-
if (e instanceof ThreadDeath) {
827-
return;
828-
}
829827
e.printStackTrace(System.err);
830828
uncaughtThrowable = e;
831829
}

1 commit comments

Comments
 (1)

openjdk-notifier[bot] commented on Mar 3, 2023

@openjdk-notifier[bot]
Please sign in to comment.