RFR: 8310228: Improve error reporting for uncaught native exceptions on Windows

David Holmes dholmes at openjdk.org
Thu Jun 22 05:35:03 UTC 2023


On Thu, 22 Jun 2023 03:05:54 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

>> test/hotspot/jtreg/runtime/ErrorHandling/UncaughtNativeExceptionTest.java line 55:
>> 
>>> 53:                     FunctionDescriptor.ofVoid());
>>> 54: 
>>> 55:             mh.invokeExact(); // throws native exception
>> 
>> The simpler way would be to just declare a normal native method and invoke it. :)
>
> I could switch to JNI, if that's preferred (I was just using what I'm more comfortable with :))

Yes please, plain, simple JNI is preferred. Thanks

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

PR Review Comment: https://git.openjdk.org/jdk/pull/14523#discussion_r1238014111


More information about the hotspot-runtime-dev mailing list