Skip to content

LDEV-6157 fix jakarta/javax compat for Lucee 6#35

Merged
zspitzer merged 4 commits into
masterfrom
LDEV-6157
Mar 19, 2026
Merged

LDEV-6157 fix jakarta/javax compat for Lucee 6#35
zspitzer merged 4 commits into
masterfrom
LDEV-6157

Conversation

@zspitzer
Copy link
Copy Markdown
Member

@zspitzer zspitzer commented Mar 18, 2026

Summary

  • Fix NoSuchMethodError: jakarta.servlet.http.HttpServletRequest lucee.runtime.PageContext.getHttpServletRequest() on Lucee 6
  • touchDestination() in both javax/jakarta Image.java called pageContext.getHttpServletRequest() directly, binding to jakarta return type at compile time since lucee.jar is a Lucee 7 loader
  • Use eng.getClassUtil().callMethod() reflection to avoid bytecode binding (same pattern as extension-websocket 6962d056b7)
  • Update CI: build once then test matrix against Lucee 6.2 + 7.0 (stable + snapshot), Java 11 + 21
  • Gate deploy to master only
  • Add regression test for <cfimage action="writeToBrowser">

Test plan

  • Local test against Lucee 6 snapshot — LDEV6157 test passes
  • CI green on all 8 matrix combinations (6.2/7.0 × stable/snapshot × Java 11/21)

See: LDEV-6157

@zspitzer zspitzer merged commit 5760e63 into master Mar 19, 2026
23 checks passed
@zspitzer zspitzer deleted the LDEV-6157 branch March 19, 2026 04:06
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.

1 participant