Skip to content

restore Java17 bytecode#2584

Merged
jtnord merged 5 commits intomasterfrom
restore-java17
Jan 23, 2026
Merged

restore Java17 bytecode#2584
jtnord merged 5 commits intomasterfrom
restore-java17

Conversation

@jtnord
Copy link
Member

@jtnord jtnord commented Jan 16, 2026

Whilst you can run the ATH against a LTS Jenkins using java17 by setting JENKINS_JAVA_HOME it is more cumbersome to do and as we are not using any java21 byte code for the moment and default to using the same JDK to run Jenkins as we do for the ATH maintaining 17 until the April 2026 LTS it picked up makes life easier.

Users running against a weekly (or an LTS) are always free to use Java21 (or 25 if that is compile this and run the tests with a Jenkins using the same JVM)

amends: #2571

caused by jenkinsci/jenkins#26018

Testing done

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests that demonstrate the feature works or the issue is fixed

Added a comment explaining the Java version compatibility with older Jenkins versions.

Whilst you can run the ATH against a LTS Jenkins using java17 by setting JENKINS_JAVA_HOME it is more cumbersome to do and as we are not using any java21 byte code for the moment and default to using the same JDK to run Jenkins as we do for the ATH maintaining 17 until the April 2026 LTS it picked up makes life easier
@jtnord jtnord requested a review from a team as a code owner January 16, 2026 10:30
@jtnord jtnord changed the title Add comment about Java version compatibility restore Java17 bytecode Jan 16, 2026
@jtnord jtnord enabled auto-merge January 16, 2026 10:40
Copy link
Member

@jglick jglick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe jenkinsci/pom#781 should just be reverted?

@jglick
Copy link
Member

jglick commented Jan 22, 2026

Failed to instantiate class jenkins.scm.api.SCMSource from {"id":["",""],…

@jtnord
Copy link
Member Author

jtnord commented Jan 22, 2026

Failed to instantiate class jenkins.scm.api.SCMSource from {"id":["",""],…

most likely caused by

org.kohsuke.stapler.WrongTypeException: Got type array but no lister class found for type class java.lang.String

-> jenkinsci/jenkins#16833

@jtnord jtnord merged commit 4563133 into master Jan 23, 2026
34 checks passed
@jtnord jtnord deleted the restore-java17 branch January 23, 2026 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants