Upgrade Saxon-HE from 9.9 to 12.5; eliminate exist-saxon-regex fork#6212
Open
joewiz wants to merge 2 commits intoeXist-db:developfrom
Open
Upgrade Saxon-HE from 9.9 to 12.5; eliminate exist-saxon-regex fork#6212joewiz wants to merge 2 commits intoeXist-db:developfrom
joewiz wants to merge 2 commits intoeXist-db:developfrom
Conversation
6 tasks
bbbdd39 to
de5057f
Compare
…egex fork Upgrade Saxon-HE from 9.9.1-8 to 12.5 and remove the exist-saxon-regex fork (org.exist-db:exist-saxon-regex:9.4.0-9.e1), a copy of Saxon 9.4's internal regex classes that has been maintained separately for over a decade. Saxon 12's public regex API makes the fork unnecessary. Saxon 12 API migration: - FastStringBuffer removed: use FloatValue.floatToString() and DoubleValue.doubleToString() for XPath-compliant formatting - Regex APIs now take UnicodeString: wrap with StringView.of() - XPathException.getErrorCodeLocalPart() replaced by getErrorCodeQName().getLocalPart() - RegexIterator.MatchHandler moved to top-level RegexMatchHandler - Xslt30Transformer.setInitialMode() now throws SaxonApiException - Saxon 12 rejects duplicate document-URIs in the document pool - Saxon 12 rejects null URIResolver and explicit xml namespace declarations in DOM and SAX pipelines - Saxon 12's LinkedTreeBuilder rejects duplicate startDocument events exist-saxon-regex replaced by Saxon 12's JavaRegularExpression API. Full exist-core test suite: 6533 tests, 0 failures, 0 errors. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Gate FORX0003 (empty-matching regex) on XQuery version in FunReplace and FunTokenize: raise the error in XQ 3.1 mode, allow empty matches in XQ 4.0 mode - Add xquery version "4.0" support to XQueryTree.g tree walker - Declare replace.xqm test module as xquery version "4.0" - Fix unnecessary FQN in FunReplace (PMD) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
de5057f to
b11bb87
Compare
10 tasks
joewiz
added a commit
to joewiz/exist
that referenced
this pull request
Apr 14, 2026
… update statuses - Replace closed eXist-db#6213 (v2/jetty-12-upgrade) with eXist-db#6145 (feature/websocket-core) - Add CI Health Note explaining known noise: integration hangs, container image HTTP 502, XQTS runner Saxon 12 crash, and complementary empty-match failures in eXist-db#6212/eXist-db#6218 - Update XQTS runner: eXist-db#45 closed, eXist-db#49 is the active PR - Update cross-repo PR table accordingly - Update "Also Ready to Merge" table: mark eXist-db#6142, eXist-db#6146 merged; eXist-db#6186 superseded by eXist-db#6224; correct eXist-db#6087 approver; add status notes for eXist-db#6182, eXist-db#6184 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Member
Author
|
[This response was co-authored with Claude Code. -Joe] CI state: 6/9 checks pass. Of the 3 failures:
Dependencies: Wave 2 (independent of other v2/ PRs, but should merge before the grammar PRs in Wave 3). Pair with exist-xqts-runner #49 for XQTS coverage. For full context on all 7.0 PRs and the merge order, see the Reviewer Guide. |
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Upgrades Saxon-HE from 9.9.1-8 to 12.5, eliminating the
exist-saxon-regexfork module. Includes regex API migration for fn:replace/fn:matches/fn:analyze-string (StringView/UnicodeString API).What Changed
exist-saxon-regexmodule removed (Saxon 12 has the needed regex classes)\p{Is...}→\p{In...}) preservedTests
Test plan
🤖 Generated with Claude Code