RFR 8187222 : ClassLoader.getSystemClassLoader not clear if recursive initialization leads to ISE or unspecified error

Brent Christian brent.christian at oracle.com
Mon Dec 4 20:11:04 UTC 2017


On 12/1/17 5:22 PM, Mandy Chung wrote:
 >
 > I think should also rethrow the cause if the cause is an Error
 > (why not)

Alright.

> The instanceof RuntimeException check should be moved outside to the
> if-statement when it’s an instance of InvocationTargetException.

So rethrow RuntimeExceptions directly, whether they're the cause of an 
InvocationTargetException or not.

Updated webrev:
http://cr.openjdk.java.net/~bchristi/8187222/webrev.02/

Thanks,
-Brent


More information about the core-libs-dev mailing list