Skip to content

Conversation

@jeanouii
Copy link
Contributor

No need to review, this is a temp PR I'll kill whenever I have more visibility on what now fails on Java 25

@jeanouii jeanouii force-pushed the NO-JIRA-Jenkinsfile-jdk-25_rev2 branch from 238395b to ec7682e Compare December 17, 2025 15:51
@jeanouii jeanouii force-pushed the NO-JIRA-Jenkinsfile-jdk-25_rev2 branch 4 times, most recently from 0feb22e to 9c4e4ac Compare January 12, 2026 09:25
@jeanouii jeanouii force-pushed the NO-JIRA-Jenkinsfile-jdk-25_rev2 branch from 9c4e4ac to 1922d5b Compare January 14, 2026 17:20
@jeanouii jeanouii changed the title WIP - JL temp work ActiveMQ on Java 25 Jan 15, 2026
@jeanouii jeanouii force-pushed the NO-JIRA-Jenkinsfile-jdk-25_rev2 branch 7 times, most recently from ea87cc1 to 367568b Compare January 23, 2026 08:21
@jeanouii jeanouii force-pushed the NO-JIRA-Jenkinsfile-jdk-25_rev2 branch 2 times, most recently from cf803e8 to 486e60f Compare February 2, 2026 09:48
@jeanouii jeanouii force-pushed the NO-JIRA-Jenkinsfile-jdk-25_rev2 branch 2 times, most recently from af06564 to bfc0690 Compare February 4, 2026 18:46
Copy link
Member

@gemmellr gemmellr left a comment

Choose a reason for hiding this comment

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

This should really be enforcing that Java 24+ is used for the release process since its required for this to be of any worth to end users.

An earlier PR is still open to require 21+ since Java 21+ wasnt used for the previous release when it should have been, though that PR (#1532) requires changes as its somewhat out of date now

(I required 25 to release elsewhere, saves changing it later and noone should be really be using 24 now anyway)

Comment on lines +277 to +283
private void assertJDK21VirtualThreadSupport() {
if(!(Runtime.version().feature() >= 21)) {
LOG.error("Virtual Thread support requires JDK 21 or higher");
throw new IllegalStateException("Virtual Thread support requires JDK 21 or higher");
}
}

Copy link
Member

Choose a reason for hiding this comment

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

The cleanup seems fine, but a thought for later would be....is there any need for all the reflection above and this runtime version checking, when the client jar is already a multi-release jar requiring Java 21 (and soon 24[/25]) to release it? Could maybe have a [couple variants of] trivial delegate class.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was a refactoring of @mattrpav 's code. So I'd let him reply.
I agree that having the assertion to fail would be weird because that would mean the JVM could not read the MRJAR but still run in some way this class.

@jeanouii
Copy link
Contributor Author

jeanouii commented Feb 5, 2026

@gemmellr Thanks a lot for the detailed review. I grab back the branch and address the feedback.

jeanouii and others added 9 commits February 5, 2026 14:24
… test to remove SecurityManager

Co-authored-by: Gurpartap Singh <gurpartap0306>
Ensure builds under Java 21 will still work with Security Manager

Only run required tests
Use Java 25 compatible version of Mockito
Use Mockito Agent because self attaching an agent is now unavailable since Java 21+
Split integration tests (MRJAR dependent) into a specific integration-test phase so they use the jar in the classpath
Do not rely on activeByDefault because when other profiles activate, quick becomes inactive
@jeanouii jeanouii force-pushed the NO-JIRA-Jenkinsfile-jdk-25_rev2 branch from bfc0690 to e876d81 Compare February 5, 2026 13:52
@jeanouii
Copy link
Contributor Author

jeanouii commented Feb 9, 2026

All feedback addressed
Ok to merge @gemmellr and @mattrpav ?

@gemmellr
Copy link
Member

gemmellr commented Feb 9, 2026

I'll leave the test config changes to Matt, not sure whats wanted or has been discussed there.

It doesnt look like you covered this bit of my earlier review. Either the original PR needs updated and merged before this one so this can update things, or this one should just do the necessary, to avoid a repeat of the previous releasing issue.

This should really be enforcing that Java 24+ is used for the release process since its required for this to be of any worth to end users.

An earlier PR is still open to require 21+ since Java 21+ wasnt used for the previous release when it should have been, though that PR (#1532) requires changes as its somewhat out of date now

(I required 25 to release elsewhere, saves changing it later and noone should be really be using 24 now anyway)

#1563 (review)

@jeanouii
Copy link
Contributor Author

jeanouii commented Feb 9, 2026

@gemmellr I was waiting for Matt to speak, but you are correct, I'll add that in the same PR so it's autonomous. I think it need a JIRA as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants