Fix an issue where if a JPMS classloader (AppClassLoader
or PlatformClassLoader
) is passed into overrideClassLoaders()
, module scanning needs to be manually enabled (since ClassGraph cannot get classpath URLs from those classloaders, so the separate JPMS module scanning code needs to be called instead of the normal classpath scanning code). (#382, thanks to @jamesward for reporting.)