In case one uses Bundle.start() directly, without going through recommended NetBeans Module APIs for enabling modules, one can reach a state, when there are active bundles, with valid classloaders, but the Thread.currentThread().getContextClassLoader() does not see them.
This may cause problems with libraries that rely on Thread.contextClassLoader to see everything in the application.
This is not a stopper for any milestone builds. I make the bug P1 to let it be included in some patch for 6.9.1
Merged to releases691 branch:
Integrated into 'main-golden', will be available in build *201010140000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Jaroslav Tulach <email@example.com>
Log: #190822: Thread.contextClassLoader shall delegate to calling-in OSGi bundle classloaders