Affects Version/s: 3.0.0-M5
Fix Version/s: None
Component/s: Maven Surefire Plugin
Environment:* java version "16.0.1" 2021-04-20
* Java(TM) SE Runtime Environment (build 16.0.1+9-24)
* Java HotSpot(TM) 64-Bit Server VM (build 16.0.1+9-24, mixed mode, sharing)
* Microsoft Windows [Version 10.0.19043.1052]
* Maven 3.6.3
* Surefire 3.0.0-M5
* JUnit (Jupiter) 5.7.2
the other day I was playing around with incubator code from JDK16 and noticed odd behavior wrt the reuseForks configuration.
In order to compile and run tests, my project needs the jdk.incubator.foreign module. So I configured it like this:
Which results in
Whereas setting reuseForks to true works.
Please note that the project itself is not modularized, i. e. it does not have a module-info.java specification (on purpose).
I provided a demo for this over at GitHub: https://github.com/JanMosigItemis/sfrf