8301622: ProcessTools.java compilation gets ThreadDeath deprecation warning

Reviewed-by: dholmes, alanb
This commit is contained in:
Afshin Zafari 2023-03-03 13:16:43 +00:00 committed by Alan Bateman
parent df9aad018a
commit ff364c1906

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2023, 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
@ -32,6 +32,7 @@ import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintStream;
import java.lang.Thread.State;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.nio.charset.Charset;
@ -823,9 +824,6 @@ public final class ProcessTools {
}
public void uncaughtException(Thread t, Throwable e) {
if (e instanceof ThreadDeath) {
return;
}
e.printStackTrace(System.err);
uncaughtThrowable = e;
}