[
https://issues.apache.org/jira/browse/XMLBEANS-595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17708735#comment-17708735
]
PJ Fanning commented on XMLBEANS-595:
-------------------------------------
[~nathan_cl] we won't do a new release just to upgrade transitive dependencies
unless there is a major issue with them. The latest checked in code (in svn)
already uses Saxon 11.5, so this will be reflected when we do a new release
(which is not yet planned).
> upgrade to saxon 11.x
> ---------------------
>
> Key: XMLBEANS-595
> URL: https://issues.apache.org/jira/browse/XMLBEANS-595
> Project: XMLBeans
> Issue Type: Improvement
> Components: XPath
> Reporter: PJ Fanning
> Priority: Major
> Fix For: Version 5.1.0
>
>
> From Saxon 10.6.
> Early analysis indicates this upgrade breaks compatibility so XMLBeans and
> POI users should not use Saxon 11.x until there is a new XMLBeans release
> that officially supports Saxon 11.x.
> It does cause compile problems (see below) and also requires that users add
> an extra jar to their classpath (https://saxonica.plan.io/issues/5265).
>
> {code:java}
> return DateTimeValue.makeDateTimeValue(value.toString(),
> config.getConversionRules()).asAtomic();
> ^
> method
> net.sf.saxon.value.DateTimeValue.makeDateTimeValue(net.sf.saxon.value.DateValue,net.sf.saxon.value.TimeValue)
> is not applicable
> (argument mismatch; java.lang.String cannot be converted to
> net.sf.saxon.value.DateValue)
> method
> net.sf.saxon.value.DateTimeValue.makeDateTimeValue(net.sf.saxon.str.UnicodeString,net.sf.saxon.lib.ConversionRules)
> is not applicable
> (argument mismatch; java.lang.String cannot be converted to
> net.sf.saxon.str.UnicodeString)
> /Users/pj.fanning/svn/xmlbeans/src/main/java/org/apache/xmlbeans/impl/xpath/saxon/SaxonXQuery.java:258:
> error: incompatible types: java.lang.String cannot be converted to
> net.sf.saxon.str.UnicodeString
> return DateValue.makeDateValue(value.toString(),
> config.getConversionRules()).asAtomic();
> ^
> /Users/pj.fanning/svn/xmlbeans/src/main/java/org/apache/xmlbeans/impl/xpath/saxon/SaxonXQuery.java:260:
> error: incompatible types: java.lang.String cannot be converted to
> net.sf.saxon.str.UnicodeString
> return TimeValue.makeTimeValue(value.toString()).asAtomic();
> ^
> /Users/pj.fanning/svn/xmlbeans/src/main/java/org/apache/xmlbeans/impl/xpath/saxon/SaxonXQuery.java:262:
> error: incompatible types: java.lang.String cannot be converted to
> net.sf.saxon.str.UnicodeString
> return GYearValue.makeGYearValue(value.toString(),
> config.getConversionRules()).asAtomic();
> ^
> /Users/pj.fanning/svn/xmlbeans/src/main/java/org/apache/xmlbeans/impl/xpath/saxon/SaxonXQuery.java:264:
> error: incompatible types: java.lang.String cannot be converted to
> net.sf.saxon.str.UnicodeString
> return GYearMonthValue.makeGYearMonthValue(value.toString(),
> config.getConversionRules()).asAtomic();
> ^
> /Users/pj.fanning/svn/xmlbeans/src/main/java/org/apache/xmlbeans/impl/xpath/saxon/SaxonXQuery.java:271:
> error: incompatible types: java.lang.String cannot be converted to
> net.sf.saxon.str.UnicodeString
> return GMonthValue.makeGMonthValue(val).asAtomic();
> ^
> /Users/pj.fanning/svn/xmlbeans/src/main/java/org/apache/xmlbeans/impl/xpath/saxon/SaxonXQuery.java:273:
> error: incompatible types: java.lang.String cannot be converted to
> net.sf.saxon.str.UnicodeString
> return
> GMonthDayValue.makeGMonthDayValue(value.toString()).asAtomic();
> ^
> /Users/pj.fanning/svn/xmlbeans/src/main/java/org/apache/xmlbeans/impl/xpath/saxon/SaxonXQuery.java:275:
> error: incompatible types: java.lang.String cannot be converted to
> net.sf.saxon.str.UnicodeString
> return GDayValue.makeGDayValue(value.toString()).asAtomic();
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]