You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by "Nathan (Jira)" <ji...@apache.org> on 2023/04/05 07:45:00 UTC
[jira] [Commented] (XMLBEANS-595) upgrade to saxon 11.x
[ https://issues.apache.org/jira/browse/XMLBEANS-595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17708730#comment-17708730 ]
Nathan commented on XMLBEANS-595:
---------------------------------
should be further updated to saxon 11.5, which contains a bug fix for https://saxonica.plan.io/issues/5859
> 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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org