On Fri, 9 Apr 2021 at 21:27, Matthias Bläsing <[email protected]> wrote:
> > To clarify that question, do the calls to GetStaticMethodID and
> > FindClass before that not fail even though there's not a JNIEnv in
> > scope?
> >
> > Like I said, been a while, but wouldn't have thought it would get that far?
>
> you are right and here is the mystery solver:
>
> https://github.com/openjdk/jfx/blob/master/modules/javafx.web/src/main/native/Source/WebKitLegacy/Storage/StorageThread.cpp#L76-L87
>
...
>
> So indeed the thread is already attached and thus JNIEnv is rightfully
> not-null.

Good to know.  I had a feeling that the thread attachment concern
might be a red herring, at least in this specific case.  Thankfully
had little need to touch this aspect of JNI directly again since we
got thread attachment control in JNA! :-)

Best wishes,

Neil

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Reply via email to