PJ Fanning created XMLBEANS-595:
-----------------------------------
Summary: 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
Fix For: Version 5.1.0
>From saxon 10.6
It does cause compile problems:
{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: [email protected]
For additional commands, e-mail: [email protected]