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

Johannes Bechberger jbechberger at openjdk.org
Wed Oct 11 20:53: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.

No. But if neccessary I could write one analogous to the OnJcmdTest, using `jdb` to check that no NullPointerException occurs in the JDI exception receiving code. This should test the current problem pretty reliably without too much effort.

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

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


More information about the serviceability-dev mailing list