Skip to content

[FREEMARKER-209] Fix "estabilished" typo in error message#126

Merged
ddekany merged 1 commit intoapache:2.3-gaefrom
mapeders:FREEMARKER-209-fix-estabilished-typo
Apr 19, 2026
Merged

[FREEMARKER-209] Fix "estabilished" typo in error message#126
ddekany merged 1 commit intoapache:2.3-gaefrom
mapeders:FREEMARKER-209-fix-estabilished-typo

Conversation

@mapeders
Copy link
Copy Markdown
Contributor

Summary

Fixes FREEMARKER-209 — the naming-convention mismatch error message emitted by the FTL parser contains the misspelling "estabilished". This PR corrects it to "established" and also fixes the same typo in a related code comment a few lines above.

Changes

  • freemarker-core/src/main/javacc/freemarker/core/FTL.jj:680 — comment
  • freemarker-core/src/main/javacc/freemarker/core/FTL.jj:751 — user-facing error message

Two-line diff in a single file. No test or identifier changes.

Scope note

The same typo also appears in the field name namingConventionEstabilisher (FTL.jj:647 and six usages). I left that rename out of this PR to keep the diff minimal and scoped to the ticket. Happy to do it as a follow-up if maintainers prefer.

Verification

  • ./gradlew build passes locally (JDK 21, since Gradle 8.5 doesn't recognize newer JDKs).
  • Regenerated FMParserTokenManager.java contains the corrected string.
  • CamelCaseTest exercises this exact error path; its assertions still pass because they don't pin the misspelling.

Test plan

  • ./gradlew build succeeds
  • Generated parser contains "established by auto-detection at "
  • No remaining estabilished in build output

Corrects spelling in the naming-convention mismatch error message
emitted by the FTL parser, and in a related code comment in the same
token-manager section.
@ddekany ddekany merged commit 783b5c4 into apache:2.3-gae Apr 19, 2026
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.

2 participants