Skip to content

Generate the XPath parser with CUP 0.10k - #4

Merged
martinhickson merged 1 commit into
xalan-j_2_7_1_maintfrom
fix/maven-dependencies
Nov 10, 2026
Merged

martinhickson merged 1 commit into
xalan-j_2_7_1_maintfrom
fix/maven-dependencies

Conversation

@martinhickson

Copy link
Copy Markdown
Owner

Summary

  • Replace com.github.vbmacher:java-cup:11b-20160615-3 with edu.princeton.cup:java-cup:10k, which emits the same parser as tools/java_cup.jar.
  • Run tools/JLex.jar as JLex.Main -static instead of maven-jlex-plugin. A standalone JLex Maven artifact does not exist yet.
  • A local BellSoft JDK 8 package matches Maven Central xalan:xalan:2.7.3 for XPathParser, XPathLexer, sym, and CUP$XPathParser$actions. XMLReaderManager remains the leak-fix difference. The xalan jar still has no serializer classes.

Test plan

  • mvn -pl xalan -am clean package -DskipTests with BellSoft JDK 8
  • Those four generated classes are byte-identical to Central 2.7.3
  • Xalan jar has 0 org/apache/xml/serializer class entries
  • CI on this pull request

edu.princeton.cup:java-cup:10k emits the same parser as tools/java_cup.jar, and tools/JLex.jar is run with -static.
@martinhickson
martinhickson merged commit 4bed29d into xalan-j_2_7_1_maint Nov 10, 2026
1 check passed
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