Hi everyone, I got stuck with upgrading my plugin build from java 8 to java 11. It compiles, but several tests that used to pass with java 8 now fail with "org.jvnet.hudson.reactor.ReactorException: java.lang.IllegalArgumentException: Unable to inject class hudson.model.UserIdMapper". Here's a link to the complete stack trace: Plugins » fortify-plugin » master #2 Console [Jenkins] <https://ci.jenkins.io/job/plugins/job/fortify-plugin/job/master/2/console>. Could someone please share their thoughts/experience?
I have a suspicion that it has something to do with the more restrictive classloading security, and something like add-opens (what package?) might help, but the strange thing is that I can't find any reference to others running into the same issue. I searched this group's archive as well. Here's my pom.xml: fortify-plugin/pom.xml at master · jenkinsci/fortify-plugin (github.com) <https://github.com/jenkinsci/fortify-plugin/blob/master/pom.xml>. I've already tried updating parent pom and jenkins versions to the latest. I also tried to rewrite the JCASC test to the new @ConfiguredWithCode way. Here's the pull request with the recent updates: Jenkins latest version upgrade by akaryakina · Pull Request #71 · jenkinsci/fortify-plugin (github.com) <https://github.com/jenkinsci/fortify-plugin/pull/71> None of these actions really changed anything, so I am feeling a little stuck. Thanks, Ann. -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAGST4yi5zBN9vW%3DF-Se9zGLick1rkuA0KW8wAMJbaoV9PpRrsA%40mail.gmail.com.