Skip to content

WW-5580 Use Configuration.VERSION_2_3_34 for FreeMarker config#1798

Merged
lukaszlenart merged 1 commit into
mainfrom
WW-5580-freemarker-2-3-34-incompatible-improvements
Jul 21, 2026
Merged

WW-5580 Use Configuration.VERSION_2_3_34 for FreeMarker config#1798
lukaszlenart merged 1 commit into
mainfrom
WW-5580-freemarker-2-3-34-incompatible-improvements

Conversation

@lukaszlenart

Copy link
Copy Markdown
Member

Aligns FreeMarker's incompatible_improvements setting in FreemarkerManager with the FreeMarker 2.3.34 dependency already declared in the build (it was still pinned to VERSION_2_3_33).

Risk

None at runtime. FreeMarker 2.3.34 declares Configuration.VERSION_2_3_34 as an incompatible-improvements break-point, but nothing in 2.3.34 gates behaviour on it:

  • _VersionInts defines V_2_3_33 but no V_2_3_34
  • the only version comparisons (BeansWrapper, ClassIntrospectorBuilder) cap at 2.3.33
  • the setIncompatibleImprovements javadoc change list stops at 2.3.33

So this is purely keeping the setting in sync with the dependency.

Tests

testIncompatibleImprovementsByOverriding intentionally stays on VERSION_2_3_33 — it now asserts a value that differs from the default, so it actually exercises the override path (previously it matched the default and passed trivially).

All 26 tests in org.apache.struts2.views.freemarker.** pass, including the template rendering/auto-escaping test.

Fixes WW-5580

🤖 Generated with Claude Code

…config

Aligns the FreeMarker incompatible_improvements setting with the
FreeMarker 2.3.34 dependency already declared in the build.

FreeMarker 2.3.34 declares VERSION_2_3_34 as an incompatible improvements
break-point but does not gate any behaviour on it, so this is a no-op at
runtime and purely keeps the setting in sync with the dependency.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@lukaszlenart
lukaszlenart enabled auto-merge (squash) July 21, 2026 09:16
@lukaszlenart
lukaszlenart merged commit f32270c into main Jul 21, 2026
6 of 7 checks passed
@lukaszlenart
lukaszlenart deleted the WW-5580-freemarker-2-3-34-incompatible-improvements branch July 21, 2026 09:32
@sonarqubecloud

Copy link
Copy Markdown

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