Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.5.0
-
None
Description
Something odd is going on with JDK 23. If I run my tests under JDK 21 or JDK 22 they run under the module-path. If I change "maven.compiler.release" to 23, then all of a sudden Surefire is running the tests on the classpath. It's odd. I'm not changing anything else about my code. If I run:
LoggerFactory.getLogger(getClass()).info("class: {}, module: {}", getClass(),
getClass().getModule().toString());
under JDK 21, I get a module name. Under JDK 23, I get "unnamed module" and module-specific functionality breaks (e.g. Module.getDescriptor() returns null).
Have you tried running any of the integration tests under JDK 23? I'm hoping you can reproduce the problem on your end...
Attachments
Issue Links
- is blocked by
-
SUREFIRE-2272 Bump org.codehaus.plexus:plexus-java from 1.2.0 to 1.3.0 - JDK 23 support
- Closed