On Mon, 16 Oct 2023 16:34:40 GMT, Johannes Bechberger <jbechber...@openjdk.org> 
wrote:

>> `if (!ex.thread().frame(0).location().equals(ex.location())) {` causes an 
>> exception:
>> 
>> 
>> java.lang.IllegalArgumentException: Invalid method id: 139869509179824
>>         at 
>> jdk.jdi/com.sun.tools.jdi.ReferenceTypeImpl.getMethodMirror(ReferenceTypeImpl.java:127)
>>         at 
>> jdk.jdi/com.sun.tools.jdi.LocationImpl.method(LocationImpl.java:101)
>>         at 
>> jdk.jdi/com.sun.tools.jdi.LocationImpl.equals(LocationImpl.java:66)
>>         at JdwpOnThrowTest.main(JdwpOnThrowTest.java:92)
>>         at 
>> java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
>>         at java.base/java.lang.reflect.Method.invoke(Method.java:580)
>>         at 
>> com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
>>         at java.base/java.lang.Thread.run(Thread.java:1570)
>
> I resolved all the other things you pointed out, but this issue is sticky.

Ok. It should work so there is a bug somewhere. I'll look into it. In the 
meantime can you verify that ex.catchLocation().method() is valid?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/16145#discussion_r1361014472

Reply via email to