Tycho Build -jdk11, tycho 2.4.0 [message #1848099] |
Fri, 19 November 2021 16:07 |
|
I'm going to upgrade from java 1.8 to java 11.
tycho 2.4.0
There's an error as below.
What should I do?
Thanks.
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:2.4.0:compile (default-compile) on project com.xxxcore: Compilation failure: Compilation failure:
[ERROR] /Users/xxx/git/xxx_jdk11/com.xxx.core/src/com/xxx/util/Util.java:[45]
[ERROR] import javax.xml.namespace.NamespaceContext;
[ERROR] ^^^^^^^^^^^^^^^^^^^
[ERROR] The package javax.xml.namespace is accessible from more than one module: <unnamed>, java.xml
[ERROR] /Users/xxx/git/xxx_jdk11/com.xxx.core/src/com/xxx/util/Util.java:[225]
[ERROR] xpath.setNamespaceContext(new NamespaceContext() {
[ERROR] ^^^^^^^^^^^^^^^^^^^
[ERROR] The method setNamespaceContext(NamespaceContext) in the type XPath is not applicable for the arguments (new NamespaceContext(){})
[ERROR] /Users/xxx/git/xxx_jdk11/com.xxx.core/src/com/xxx//Util.java:[225]
[ERROR] xpath.setNamespaceContext(new NamespaceContext() {
[ERROR] ^^^^^^^^^^^^^^^^
[ERROR] NamespaceContext cannot be resolved to a type
[ERROR] /Users/xxx/git/xxx_jdk11/com.xxx.core/src/com/xxx//Util.java:[228]
[ERROR] public String getNamespaceURI(String prefix) {
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The method getNamespaceURI(String) of type new NamespaceContext(){} must override or implement a supertype method
[ERROR] /Users/xxx/git/xxx_jdk11/com.xxx.core/src/com/xxx//Util.java:[245]
[ERROR] public String getPrefix(String namespaceURI) {
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The method getPrefix(String) of type new NamespaceContext(){} must override or implement a supertype method
[ERROR] /Users/xxx/git/xxx_jdk11/com.xxx.core/src/com/xxx//Util.java:[251]
[ERROR] public Iterator getPrefixes(String namespaceURI) {
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The method getPrefixes(String) of type new NamespaceContext(){} must override or implement a supertype method
[ERROR] 6 problems (6 errors)
|
|
|
Powered by
FUDForum. Page generated in 0.03640 seconds