Conversation
Saxon 13 requires Java 17 to build (the xmlbeans jar still targets Java 8). - SaxonXQuery: replace removed HashTrieMap with GeneralMapBuilder, removed DurationValue ctor with DurationValue.makeDuration and DateValue.makeDateValue(UnicodeString, ConversionRules) with DateValue.tryParseDate - SaxonXPathEngine: use getStringValue() for remaining AtomicValues, as toString() no longer returns the lexical form (e.g. durations) - CI workflows: build with JDK 17 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Closed
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.
Supersedes #38, which only bumped the version.
Saxon 13 requires Java 17, so building xmlbeans now needs JDK 17. The xmlbeans jar itself still targets Java 8 bytecode, and Saxon remains a
provideddependency. Users of the Saxon-backed XPath/XQuery support now need Saxon 13 (and therefore Java 17); this code no longer compiles against Saxon 12.Changes:
SaxonXQuery: Saxon 13 API changesHashTrieMapremoved →GeneralMapBuilder(config.getMapSpecVersion())DurationValueconstructor removed →DurationValue.makeDuration(...)(as a side effect, fractional seconds are no longer dropped)DateValue.makeDateValue(UnicodeString, ConversionRules)removed →DateValue.tryParseDate(str, allowYearZero)SaxonXPathEngine: useAtomicValue.getStringValue()for atomic results; in Saxon 13toString()returns a debug form (e.g.DayTimeDuration 172800Sinstead ofP2D), which brokeTypesTest.testDurationbuild.gradle,build.xml, maven poms,LICENSE-binary.txttest-gradle.ymlandpublish-snapshot.ymlbuild with JDK 17Tested locally with JDK 17:
./gradlew testpasses (3180 tests, 170 skipped).🤖 Generated with Claude Code