Skip to content

[8.0] HV-2218 Backport JDK 25 jboss-logging fix from HV 9.x - #1985

Open
vsalbaba wants to merge 1 commit into
hibernate:8.0from
vsalbaba:8.0.3.Final-EAPQE-5488
Open

[8.0] HV-2218 Backport JDK 25 jboss-logging fix from HV 9.x#1985
vsalbaba wants to merge 1 commit into
hibernate:8.0from
vsalbaba:8.0.3.Final-EAPQE-5488

Conversation

@vsalbaba

@vsalbaba vsalbaba commented May 26, 2026

Copy link
Copy Markdown

https://hibernate.atlassian.net/browse/HV-2218

Summary

Backport of upstream fixes from main to HV 8.0.x for JDK 25 compatibility.

HV 8.0.x uses the deprecated Logger.getMessageLogger(Class, String) and Messages.getBundle(Class) APIs from jboss-logging 3.4.3.Final, which rely on SecurityManager-based class lookup. JDK 24 removed SecurityManager, causing "implementation not found" errors on JDK 25.

This was already fixed upstream in main / HV 9.x but never backported to 8.0.x.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on licensing, please check here.


@hibernate-github-bot

hibernate-github-bot Bot commented May 26, 2026

Copy link
Copy Markdown

Thanks for your pull request!

This pull request appears to follow the contribution rules.

› This message was automatically generated.

@hibernate-github-bot hibernate-github-bot Bot changed the title HV-2218 Backport JDK 25 jboss-logging fix from HV 9.x [8.0] HV-2218 Backport JDK 25 jboss-logging fix from HV 9.x May 26, 2026
@hibernate-github-bot hibernate-github-bot Bot added the 8.0 Label for pull requests targeting [8.0] branch. label May 26, 2026
@vsalbaba
vsalbaba force-pushed the 8.0.3.Final-EAPQE-5488 branch from c4585f3 to 340b96b Compare May 26, 2026 09:26
Upgrade jboss-logging from 3.4.3.Final to 3.6.1.Final and switch to
MethodHandles.lookup() variant of getMessageLogger/getBundle to avoid
SecurityManager-dependent class lookup removed in JDK 24+.

Backport of upstream HV-1974 and HV-2045.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vsalbaba
vsalbaba force-pushed the 8.0.3.Final-EAPQE-5488 branch from 340b96b to 0e10bb2 Compare May 26, 2026 09:29
@marko-bekhta

Copy link
Copy Markdown
Member

hey @vsalbaba 👋🏻 🙂
do you need 8.0.3.SP1 or 8.0.4.Final would be fine ?

@vsalbaba

Copy link
Copy Markdown
Author

As soon as possible would be of course nice. With 8.0.3.SP1 there is a higher chance the fix will make it to downstream product, so 8.0.3.SP1 please.

@marko-bekhta

Copy link
Copy Markdown
Member

hey, just a heads up... this needs a bit more work: https://ci.hibernate.org/blue/organizations/jenkins/hibernate-validator/detail/8.0.3.SP/1/pipeline

The problem is that the WF version also uses an older version of the logging lib, so the tests won't pass...

@marko-bekhta

marko-bekhta commented Jun 1, 2026

Copy link
Copy Markdown
Member

hey 👋🏻 so coming back to this one... Hibernate Validator 8.0 seems to run fine with JDK 25 (that is, without applying the changes for the jboss logging):

https://ci.hibernate.org/job/hibernate-validator/job/PR-1991/2/stages/?selected-node=68

Was there a particular problem you've run into?

@marko-bekhta

Copy link
Copy Markdown
Member

@vsalbaba ping

@vsalbaba

Copy link
Copy Markdown
Author

We've discussed this elsewhere and clarified that the issue comes up when built with JDK25. Hibernate team compiles with JDK17. We've decided we update the compiler plugin and maybe have a different test profile for the new WF version that can run on JDK 25.

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

Labels

8.0 Label for pull requests targeting [8.0] branch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants