Test java/foreign/enablenativeaccess/TestEnableNativeAccessDynamic.java
fails when executed with virtual thread factory.
It is a known problem that virtual threads that they doesn't support permissions.
To reproduce run:
make -- run-test JTREG_VERBOSE=all JTREG_RETAIN=all JTREG_TEST_THREAD_FACTORY=Virtual TEST=java/foreign/enablenativeaccess/TestEnableNativeAccessDynamic.java
The outpu of process:
java -cp .. -ea -esa --enable-preview --enable-native-access=ALL-UNNAMED jdk.test.lib.process.ProcessTools Virtual NativeAccessDynamicMain /home/lmesnik/ws/jdk-8307307/build/linux-x64/test-support/jtreg_open_test_jdk_java_foreign_enablenativeaccess/classes/0/java/foreign/enablenativeaccess/TestEnableNativeAccessDynamic.d/modules panama_module/org.openjdk.foreigntest.PanamaMainDirect false panama_enable_native_access_fail
Trying to get Linker
There is no expected exception while also no output for further actions.
fails when executed with virtual thread factory.
It is a known problem that virtual threads that they doesn't support permissions.
To reproduce run:
make -- run-test JTREG_VERBOSE=all JTREG_RETAIN=all JTREG_TEST_THREAD_FACTORY=Virtual TEST=java/foreign/enablenativeaccess/TestEnableNativeAccessDynamic.java
The outpu of process:
java -cp .. -ea -esa --enable-preview --enable-native-access=ALL-UNNAMED jdk.test.lib.process.ProcessTools Virtual NativeAccessDynamicMain /home/lmesnik/ws/jdk-8307307/build/linux-x64/test-support/jtreg_open_test_jdk_java_foreign_enablenativeaccess/classes/0/java/foreign/enablenativeaccess/TestEnableNativeAccessDynamic.d/modules panama_module/org.openjdk.foreigntest.PanamaMainDirect false panama_enable_native_access_fail
Trying to get Linker
There is no expected exception while also no output for further actions.