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

Johannes Bechberger jbechberger at openjdk.org
Thu Oct 12 10:35:12 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 can confirm that it doesn't work properly in JDK 8, I have to check older JDKs.

But it kind of worked, because it started a debugging session after the specified exception had been thrown. It just didn't send a proper exception event. It's definitely a useful feature.

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

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


More information about the serviceability-dev mailing list