-
Improvement
-
Resolution: Done
-
Neutral
-
None
-
None
-
None
ClasspathResourcesUtil may not collect the expected resources on Java 9+.
This issue may affect execution of tests, where the bootstrap files are not detected properly, and need to be added manually to the tests.
Since JDK9, the system class loaders are no longer URLClassLoaders. This becomes a problem when running tests or scripts standalone on Java 11 for example (either from Maven or from IntelliJ). It is not a problem at Magnolia runtime because there we are under Tomcat's WebappClassLoader (or similar for others) which still is a URLClassLoader.
Fix should be along the lines of tokenizing the classpath and producing URLs out of that, no unsafe reflection involved.
- causes
-
MAGNOLIA-8193 Repository is not cleaned up post test execution
- Closed