New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[JENKINS-68930] Fix Java17 Error on agent start #206
Conversation
--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED
src/main/java/org/jenkinsci/plugins/envinject/service/EnvInjectMasterEnvVarsSetter.java
Outdated
Show resolved
Hide resolved
Untested, but looks good so far. Thanks for filing the PR! |
…tMasterEnvVarsSetter.java Co-authored-by: Alexander Brandes <brandes.alexander@web.de>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix! It will likely fail SpotBugs, because the return value of the new method might be null. In the end you should check for null and throw NoSuchMethodException
to retain the behavior
Any chance to get this PR merged? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, do you mind taking another look @oleg-nenashev ?
Can someone review the change request so this could possibly be merged? |
@oleg-nenashev Can you please review this so it can possible get merged? |
See JENKINS-66896 and JENKINS-68930
Use WA to work with modifiers field filtered since JDK12.
--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED are required.