GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: split CCJSqlParserTokenManager static initializers to avoid 64KB… by hayssams · Pull Request #2425 · JSQLParser/JSqlParser

Conversation

@hayssams

@hayssams hayssams commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

… method limit

The generated CCJSqlParserTokenManager class has a clinit method that reaches 64,452 bytes -- dangerously close to the JVM 65,535 byte limit. ASM-based tools like sbt-assembly add transformation overhead that pushes it over, causing MethodTooLargeException during fat JAR creation.

Add a splitTokenManagerStaticInit Gradle task that post-processes the generated Java file after JavaCC code generation, extracting 6 large static array initializations (stringLiterals, jjstrLiteralImages, jjmatchKinds, jjnewLexState, jjcompositeState, jjnextStateSet) into separate private static methods. This reduces clinit from 64,452 bytes to 404 bytes.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@hayssams @claude
fix: split CCJSqlParserTokenManager static initializers to avoid 64KB…
6373b82
… method limit

The generated CCJSqlParserTokenManager class has a clinit method that reaches
64,452 bytes -- dangerously close to the JVM 65,535 byte limit. ASM-based tools
like sbt-assembly add transformation overhead that pushes it over, causing
MethodTooLargeException during fat JAR creation.

Add a splitTokenManagerStaticInit Gradle task that post-processes the generated
Java file after JavaCC code generation, extracting 6 large static array
initializations (stringLiterals, jjstrLiteralImages, jjmatchKinds, jjnewLexState,
jjcompositeState, jjnextStateSet) into separate private static methods. This
reduces clinit from 64,452 bytes to 404 bytes.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@manticore-projects manticore-projects mentioned this pull request Apr 8, 2026
CCJSqlParserTokenManager.java:57: error: code too large javacc/javacc-8-core#3
Open
@manticore-projects

manticore-projects commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

Thank you! Please see javacc/javacc-8-core#3
I will try to move this upstream to JavaCC itself.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@manticore-projects
manticore-projects merged commit cf5bbc9 into JSQLParser:master Apr 8, 2026
7 checks passed

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@hayssams @manticore-projects
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.