[ https://issues.apache.org/jira/browse/XMLBEANS-595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17489774#comment-17489774 ]
Andreas Beeker commented on XMLBEANS-595: ----------------------------------------- As of Saxon 11.1.1, can we resolve this now for the trunk? > upgrade to saxon 11.1 > ---------------------- > > 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.1#820001) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org For additional commands, e-mail: dev-h...@poi.apache.org