There is 1 comment.
 
 
XWiki Rendering / cid:jira-generated-image-avatar-348d8659-278a-48c5-b5df-601d187ad0a6 XRENDERING-804 Open

Upgrade to JavaCC 8+ and JavaCC Maven Plugin 3.8+

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-a4789467-c59f-4b58-8ad0-258c2ee74ec2 Thomas Mortagne on 16/Nov/26 11:38
 

Tried on 2026-11-16 with JavaCC Maven Plugin 3.8.0 and JavaCC 8.1.0 (org.javacc.generator:java): the 6 grammars are generated without errors (same files as with JavaCC 7), but the generated CommonWikiScannerTokenManager does not compile ("code too large"): the static tables JavaCC 8 generates for its 1641 lexical states (UNICODE_INPUT) exceed the 64 KB method size limit. It's a known JavaCC 8 limitation: https://github.com/javacc/javacc-8-core/issues/3 (still open, other projects post-process the generated code to work around it).

So the plugin upgrade alone was done in XRENDERING-833 (the 3.8.0 plugin still supports JavaCC 7.0.13 and generates the exact same sources), and moving to JavaCC 8 is blocked until the Java generator handles big token managers (or the CommonWikiScanner grammar gets simpler).