RFR 8135188: RunFinalizationTest.java Exception java.lang.Error: Test failure: Object was not finalized

Jaroslav Bachorik jaroslav.bachorik at oracle.com
Thu Oct 8 07:37:33 UTC 2015


Please, review the following test change

Issue : https://bugs.openjdk.java.net/browse/JDK-8135188
Webrev: http://cr.openjdk.java.net/~jbachorik/8135188/webrev.00

The problem is described in detail in the issue. This patch follows the 
recommendation by Dan Daugherty and runs the part where finalization is 
being requested in a shutdown handler as a separate process. The test 
then checks the result of this separate process to see whether any 
errors were reported. In order to simplify the logic of the shutdown 
handler the failures are reported by simply printing messages into 
stderr as opposed to throwing 'new Error()'.

The modified test is still passing on all supported platforms.

Thanks,

-JB-


More information about the serviceability-dev mailing list