Hi Michael,
Thanks!
However, I don't see anything related to the --add-opens setup in your config.
I tried your setup, but there is was difference in running the tests via VSCode (screenshot), they were still failing with
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field protected transient int java.util.AbstractList.modCount accessible: module java.base does not "opens java.util" to unnamed module @22c8bf6c
which is because the flags I mentioned earlier are not passed to the test runner.
I then tried again with my previous run configuration approach and I made some progress with the following settings.json:
{
"java.test.defaultConfig": "conf",
"java.test.config":
{
"name": "conf",
"workingDirectory": "${workspaceFolder}",
"vmArgs": [
"-Xms768M","-Xmx768M","-XX:+HeapDumpOnOutOfMemoryError","-XX:+TieredCompilation","-XX:TieredStopAtLevel=1",
"--add-opens", "java.base/java.util=ALL-UNNAMED",
"--add-opens", "java.base/java.util.concurrent.locks=ALL-UNNAMED"
],
},
}
That made the tests that failed because of the add-opens param missing now succeed, but I still see a bunch of other tests failing (screenshot 2) with some weird errors like:
Caused by: io.jenkins.plugins.casc.UnknownAttributesException: unclassified: Invalid configuration elements for type: class jenkins.model.GlobalConfigurationCategory$Unclassified : jiraglobalconfiguration.
Available attributes : administrativeMonitorsConfiguration, artifactManager, buildDiscarders, builtInNode, casCGlobalConfig, computerRetentionCheckInterval, defaultDisplayUrlProvider, defaultFolderConfiguration, defaultView, envVarsFilter, fingerprints, globalDefaultFlowDurabilityLevel, junitTestResultStorage, location, mailer, myView, nodeProperties, perforce, plugin, pollSCM, projectNamingStrategy, proxyConfigurationManager, quietPeriod, resourceRoot, scmRetryCount, shell, usageStatistics, viewsTabBar