Can Thread.getContextClassLoader()
be null ? The javadoc is not really clear.
Should a library take this case into account ?
Update: the reason I asked is that beansbinding.dev.java.net
does not work in this case (and my code does setContextClassLoader(null)
Java threads created from JNI code in a non-java thread have null ContextClassloader unless the creator explicitly sets it.
Also in such context Thread.currentThread() returns null.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With