Skip to content

Align standalone EL with Hibernate Validator 9 - #17175

Merged
jdaugherty merged 1 commit into
apache:9.0.xfrom
jdaugherty:fix/el6-validator-compatibility
Nov 26, 2026
Merged

jdaugherty merged 1 commit into
apache:9.0.xfrom
jdaugherty:fix/el6-validator-compatibility

Conversation

@jdaugherty

Copy link
Copy Markdown
Contributor

Summary

Align GORM's default standalone Expression Language implementation with Hibernate Validator 9 on 9.0.x:

  • Expressly 5.0.0 → 6.0.0
  • Jakarta EL API 5.0.1 → 6.0.1

Hibernate Validator 9.1.6 declares EL API 6.0.1 as an optional, provided dependency. The existing Expressly 5 runtime supplies EL API 5.0.0 instead. Interpolating a standard @DecimalMin or @DecimalMax message can therefore throw NoClassDefFoundError: jakarta/el/RecordELResolver instead of returning a constraint violation.

Expressly 6.0.0 depends on EL API 6.0.1 and supports Java 17. Spring Boot 4.2 does not manage these EL coordinates, so this updates the existing version properties. The upgrade note covers applications that replace the default provider.

Related to #16624: this fixes the baseline dependency mismatch independently, without incorporating that PR's validation changes or adding production APIs.

Verification

  • Added four public-API regression cases for the standard inclusive/exclusive minimum and maximum messages. All four fail before alignment with the missing-class error and pass afterward.
  • Ran the clean aggregate/static-analysis and full unit/integration test gate, dependency-version validation, BOM-property validation, and guide publication with two workers and one test fork.
  • Final combined report: 34,001 tests reported, 0 failures, 0 errors, 463 skipped. This includes the full datamapping, Hibernate 5, Hibernate 7, Neo4j, and GSP/JSP-consumer suites.
  • The initial full run hit the existing Geb recording-size assertion. The complete Geb example module passed on an isolated rerun. After removing only Neo4j test-generated files flagged by a subsequent RAT audit, the final verification pass succeeded.
  • Checkstyle, CodeNarc, repository conventions, and enabled PMD checks are clean. SpotBugs is disabled on this baseline. RAT reports 0 unknown licenses.
  • Build Health passed in a fresh 3 GiB daemon, with non-fatal dependency advice remaining.

Use Expressly 6.0.0 and Jakarta EL API 6.0.1 so standalone validation can interpolate standard decimal-bound messages. Cover inclusive and exclusive minimum and maximum messages through the public validator API and document custom-provider compatibility.
@testlens-app

testlens-app Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

🚨 All tests passed but jobs failed 🚨

Failed Jobs without Test Failures

❌ End to End / End to End Tests (end-to-end build only)

🏷️ Commit: 340b20e
▶️ Tests: 151161 executed
⚪️ Checks: 96/96 completed

Rerun Controls

Click the checkbox to trigger a rerun:

  • Rerun jobs

Learn more about TestLens at testlens.app/docs.

@jamesfredley jamesfredley left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The changes look good.

@sbglasius sbglasius left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is an AI assisted review

The version bump matches Hibernate Validator 9's EL 6, with a spec reproducing the RecordELResolver error. The native-i18n end-to-end failure happens on 9.0.x too since #17157 merged, so it's unrelated. LGTM.

@jdaugherty

Copy link
Copy Markdown
Contributor Author

The e2e failure is due to Scott's cache manager PR merge. It's failing on 9.0.x already. merging.

@jdaugherty
jdaugherty merged commit ad4a6d8 into apache:9.0.x Nov 26, 2026
96 of 97 checks passed
@jdaugherty
jdaugherty deleted the fix/el6-validator-compatibility branch November 26, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants