RFR: JDK-8317920: JDWP-agent sends broken exception event with onthrow option

Johannes Bechberger jbechberger at openjdk.org
Mon Oct 16 16:23:13 UTC 2023


On Wed, 11 Oct 2023 10:44:53 GMT, Johannes Bechberger <jbechberger at openjdk.org> wrote:

> Fix `onthrow` issue by passing the event info to the `initialize` method.
> 
> This prevents `jdb` from receiving a broken exception event and throwing an internal NullPointerException, upon attaching to the JDWP-agent.

I added a minimal test case which starts a debugging session for a basic program and attaches to it via JDI to check that the JDWP-agent throws an exception event with non-null properties. The case fails for the current master and succeeds with this PR.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/16145#issuecomment-1764622093


More information about the serviceability-dev mailing list