RFR: 8372555: Test com/sun/jdi/ExceptionEvents.java failed: ObjectCollectedException
Chris Plummer
cjplummer at openjdk.org
Thu Dec 4 02:16:35 UTC 2025
When the test receives an ExceptionEvent, the exception object can be collected if the SUSPEND_NONE policy is being used, resulting in an ObjectCollectedException when referencing event.exception(). The exception should be handled and not cause the test to fail.
I'm not sure if this fixes all the issues with 8372555. I suspect there is something else going on that has a side affect of triggering the collection of the exception object, but this is at least a first step towards figuring out if there is more too this bug.
-------------
Commit messages:
- handle ObjectCollectedException
Changes: https://git.openjdk.org/jdk/pull/28652/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28652&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8372555
Stats: 11 lines in 1 file changed: 9 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/28652.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/28652/head:pull/28652
PR: https://git.openjdk.org/jdk/pull/28652
More information about the serviceability-dev
mailing list