On Wed, 11 Oct 2023 10:44:53 GMT, Johannes Bechberger <jbechber...@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.

After the fix (see 
https://mostlynerdless.de/blog/2023/10/11/jdwp-onthrow-and-a-mysterious-error/):

➜ jdb -attach 5005
Set uncaught java.lang.Throwable
Set deferred uncaught java.lang.Throwable
Initializing jdb ...
> 
Exception occurred: Ex (to be caught at: OnThrowAndJCmd.main(), line=7 
bci=18)"thread=main", OnThrowAndJCmd.main(), line=6 bci=17
main[1]

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

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

Reply via email to