Hi Jean-Frederic,

Am 25.02.2022 um 17:27 schrieb jean-frederic clere:
On 21/02/2022 22:20, Rémy Maucherat wrote:
[X] Stable - go ahead and release as 9.0.59 (stable)

Tested on fedora fc35 with openjdk version "11.0.14.1"

My tests failed with openjdk version "1.8.0_322"
test-nio:
    [junit] Unrecognized option: --add-opens=java.base/java.lang=ALL-UNNAMED
     [junit] Error: Could not create the Java Virtual Machine.
The problem is to compile the tests with java11 and test with java8 I need to fix my tests :-(

we had this discussion in another thread. It should suffice to add the following lines to your own build.properties file:

opens.javalang=-Dnop
opens.javaio=-Dnop
opens.sunrmi=-Dnop
opens.javautil=-Dnop
opens.javautilconcurrent=-Dnop

You can add them before building or also just before running the test. They only apply to the unit test runs. The "nop" was chosen as any system property name that is likely not actually being used. It should remind one of a "no-operation".

Best regards,

Rainer


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to