PJ Fanning created XMLBEANS-635:
-----------------------------------

             Summary: upgrade to saxon 12.x
                 Key: XMLBEANS-635
                 URL: https://issues.apache.org/jira/browse/XMLBEANS-635
             Project: XMLBeans
          Issue Type: Task
            Reporter: PJ Fanning


Saxon 12.0 does not support Java 8,

Saxon 12.1 does, in theory - but instead breaks some APIs that we need.

 
 [2023-03-22 20:45:44] [autobuild] 
/home/runner/work/xmlbeans/xmlbeans/src/main/java/org/apache/xmlbeans/impl/xpath/saxon/SaxonXQuery.java:84:
 error: incompatible types: invalid method reference 
[77|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:78]
 [2023-03-22 20:45:44] [autobuild] nsMap.forEach(sc::declareNamespace); 
[78|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:79]
 [2023-03-22 20:45:44] [autobuild] ^ 
[79|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:80]
 [2023-03-22 20:45:44] [autobuild] incompatible types: String cannot be 
converted to NamespaceUri 
[80|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:81]
 [2023-03-22 20:45:44] [autobuild] 
/home/runner/work/xmlbeans/xmlbeans/src/main/java/org/apache/xmlbeans/impl/xpath/saxon/SaxonXQuery.java:181:
 error: reference to StructuredQName is ambiguous 
[81|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:82]
 [2023-03-22 20:45:44] [autobuild] dc.setParameter(new StructuredQName("", 
null, contextVar), root); 
[82|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:83]
 [2023-03-22 20:45:44] [autobuild] ^ 
[83|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:84]
 [2023-03-22 20:45:44] [autobuild] both constructor 
StructuredQName(String,NamespaceUri,String) in StructuredQName and constructor 
StructuredQName(String,String,String) in StructuredQName match 
[84|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:85]
 [2023-03-22 20:45:44] [autobuild] 
/home/runner/work/xmlbeans/xmlbeans/src/main/java/org/apache/xmlbeans/impl/xpath/saxon/SaxonXQuery.java:185:
 error: reference to StructuredQName is ambiguous 
[85|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:86]
 [2023-03-22 20:45:44] [autobuild] > Task :bootstrapMigrate 
[86|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:87]
 [2023-03-22 20:45:44] [autobuild] StructuredQName key = new 
StructuredQName("", null, me.getKey()); 
[87|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:88]
 [2023-03-22 20:45:44] [autobuild] ^ 
[88|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:89]
 [2023-03-22 20:45:44] [autobuild] both constructor 
StructuredQName(String,NamespaceUri,String) in StructuredQName and constructor 
StructuredQName(String,String,String) in StructuredQName match 
[89|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:90]
 [2023-03-22 20:45:44] [autobuild] 
/home/runner/work/xmlbeans/xmlbeans/src/main/java/org/apache/xmlbeans/impl/xpath/saxon/SaxonXQuery.java:285:
 error: incompatible types: String cannot be converted to NamespaceUri 
[90|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:91]
 [2023-03-22 20:45:44] [autobuild] return new QNameValue(q.getPrefix(), 
q.getNamespaceURI(), q.getLocalPart()); //BuiltInAtomicType.QNAME, null); 
[91|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:92]
 [2023-03-22 20:45:44] [autobuild] ^ 
[92|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:93]
 [2023-03-22 20:45:44] [autobuild] 
/home/runner/work/xmlbeans/xmlbeans/src/main/java/org/apache/xmlbeans/impl/xpath/saxon/SaxonXPath.java:97:
 error: incompatible types: String cannot be converted to NamespaceUri 
[93|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:94]
 [2023-03-22 20:45:44] [autobuild] sc.setDefaultElementNamespace(defaultNS); 
[94|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:95]
 [2023-03-22 20:45:44] [autobuild] ^ 
[95|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:96]
 [2023-03-22 20:45:44] [autobuild] 
/home/runner/work/xmlbeans/xmlbeans/src/main/java/org/apache/xmlbeans/impl/xpath/saxon/SaxonXPath.java:100:
 error: incompatible types: invalid method reference 
[96|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:97]
 [2023-03-22 20:45:44] [autobuild] namespaceMap.forEach(sc::declareNamespace); 
[97|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:98]
 [2023-03-22 20:45:44] [autobuild] ^ 
[98|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:99]
 [2023-03-22 20:45:44] [autobuild] incompatible types: String cannot be 
converted to NamespaceUri 
[99|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:100]
 [2023-03-22 20:45:44] [autobuild] 
/home/runner/work/xmlbeans/xmlbeans/src/main/java/org/apache/xmlbeans/impl/xpath/saxon/SaxonXPath.java:106:
 error: incompatible types: String cannot be converted to NamespaceUri 
[100|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:101]
 [2023-03-22 20:45:44] [autobuild] XPathVariable thisVar = 
sc.declareVariable("", contextVar); 
[101|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:102]
 [2023-03-22 20:45:44] [autobuild] ^ 
[102|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:103]
 [2023-03-22 20:45:46] [autobuild] Note: 
/home/runner/work/xmlbeans/xmlbeans/src/main/java/org/apache/xmlbeans/impl/store/Xobj.java
 uses or overrides a deprecated API. 
[103|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:104]
 [2023-03-22 20:45:46] [autobuild] Note: Recompile with -Xlint:deprecation for 
details. 
[104|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:105]
 [2023-03-22 20:45:46] [autobuild] Note: Some input files use unchecked or 
unsafe operations. 
[105|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:106]
 [2023-03-22 20:45:46] [autobuild] Note: Recompile with -Xlint:unchecked for 
details. 
[106|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:107]
 [2023-03-22 20:45:46] [autobuild] Note: Some messages have been simplified; 
recompile with -Xdiags:verbose to get full output 
[107|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:108]
 [2023-03-22 20:45:46] [autobuild] 7 errors 
[108|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:109]
 [2023-03-22 20:45:46] [autobuild] FAILURE: Build failed with an exception. 
[109|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:110]
 [2023-03-22 20:45:46] [autobuild] * What went wrong: 
[110|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:111]
 [2023-03-22 20:45:46] [autobuild] Execution failed for task 
':bootstrapMigrate'. 
[111|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:112]
 [2023-03-22 20:45:46] [autobuild] > Compilation failed; see the compiler error 
output for details. 
[112|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:113]
 [2023-03-22 20:45:46] [autobuild] * Try: 
[113|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:114]
 [2023-03-22 20:45:46] [autobuild] > Run with --info or --debug option to get 
more log output. 
[114|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:115]
 [2023-03-22 20:45:46] [autobuild] > Run with --scan to get full insights. 
[115|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:116]
 [2023-03-22 20:45:46] [autobuild] * Exception is: 
[116|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:117]
 [2023-03-22 20:45:46] [autobuild] org.gradle.api.tasks.TaskExecutionException: 
Execution failed for task ':bootstrapMigrate'. 
[117|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:118]
 [2023-03-22 20:45:46] [autobuild] at 
org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:149)
 
[118|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:119]
 [2023-03-22 20:45:46] [autobuild] at 
org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:282) 
[119|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:120]
 [2023-03-22 20:45:46] [autobuild] at 
org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:147)
 
[120|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:121]
 [2023-03-22 20:45:46] [autobuild] at 
org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:135)
 
[121|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:122]
 [2023-03-22 20:45:46] [autobuild] at 
org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
 
[122|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:123]
 [2023-03-22 20:45:46] [autobuild] at 
org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:51)
 
[123|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:124]
 [2023-03-22 20:45:46] [autobuild] at 
org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
 
[124|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:125]
 [2023-03-22 20:45:46] [autobuild] at 
org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:74)
 
[125|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:126]
 [2023-03-22 20:45:46] [autobuild] at 
org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
 
[126|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:127]
 [2023-03-22 20:45:46] [autobuild] at 
org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
 
[127|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:128]
 [2023-03-22 20:45:46] [autobuild] at 
org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
 
[128|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:129]
 [2023-03-22 20:45:46] [autobuild] at 
org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
 
[129|https://github.com/apache/xmlbeans/actions/runs/4494318863/jobs/7906647952#step:4:130]
 [2023-03-22 20:45:46] [autobuild] at 
org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to