Skip to content

LDEV-6158 fix jakarta/javax bytecode binding in Form extension#5

Merged
zspitzer merged 3 commits into
masterfrom
LDEV-6158
Mar 19, 2026
Merged

LDEV-6158 fix jakarta/javax bytecode binding in Form extension#5
zspitzer merged 3 commits into
masterfrom
LDEV-6158

Conversation

@zspitzer
Copy link
Copy Markdown
Member

Summary

  • javax Form.java calls pageContext.getHttpServletRequest() which compiles against the jakarta servlet API (Lucee 7 loader in source/java/libs/), causing NoSuchMethodError on Lucee 6
  • Fix: use engine.getClassUtil().callMethod() reflection in javax/Form.java for getHttpServletRequest(), getContextPath(), getServletPath(), and getQueryString()
  • Jakarta Form.java left unchanged — direct typed calls are fine for Lucee 7
  • CI updated: build once, test against Lucee 6.2 + 7.0 (snapshot + stable), Java 11 + 21, deploy gated to master

https://luceeserver.atlassian.net/browse/LDEV-6158

Test plan

  • LDEV6158.cfc<cfform> via _internalRequest confirms fix on Lucee 6
  • CI green on all matrix combinations (6.2/7.0 × Java 11/21)

@zspitzer zspitzer merged commit bffe85d into master Mar 19, 2026
23 checks passed
@zspitzer zspitzer deleted the LDEV-6158 branch March 19, 2026 03:55
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