RFR: JDK-8317920: JDWP-agent sends broken exception event with onthrow option
Johannes Bechberger
jbechberger at openjdk.org
Sat Oct 14 13:24:50 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.
There is an NPE on JDK 8. The onthrow option doesn't work properly there too. The bug is in the code since it is on GitHub. The stack trace in JDB looks exactly the same in JDK 8 as in JDK 21.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/16145#issuecomment-1762892906
More information about the serviceability-dev
mailing list