BefatorNix/java/jaxen.patch
2025-09-21 17:18:28 +02:00

130 lines
4.4 KiB
Diff
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

diff --git a/build.xml b/build.xml
index bdb1903..ca97d2e 100644
--- a/build.xml
+++ b/build.xml
@@ -234,7 +234,8 @@
<javac destdir="${build.dest.main}"
debug="${debug}"
optimize="${optimize}"
- deprecation="${deprecation}">
+ deprecation="${deprecation}"
+ target="1.4">
<src path="${build.src.main}"/>
<patternset refid="jaxen.${object.model}"/>
</javac>
@@ -244,7 +245,8 @@
<javac destdir="${build.dest.test}"
debug="${debug}"
optimize="${optimize}"
- deprecation="${deprecation}">
+ deprecation="${deprecation}"
+ target="1.4">
<src path="${build.src.test}"/>
<classpath path="${build.dest.test}"/>
<classpath path="${build.dest.main}"/>
@@ -256,7 +258,8 @@
<javac destdir="${build.dest.samples}"
debug="${debug}"
optimize="${optimize}"
- deprecation="${deprecation}">
+ deprecation="${deprecation}"
+ target="1.4">
<src path="${build.src.samples}"/>
<classpath path="${build.dest.samples}"/>
<classpath path="${build.dest.main}"/>
diff --git a/src/java/main/org/jaxen/dom/NamespaceNode.java b/src/java/main/org/jaxen/dom/NamespaceNode.java
index 42fc619..832b248 100644
--- a/src/java/main/org/jaxen/dom/NamespaceNode.java
+++ b/src/java/main/org/jaxen/dom/NamespaceNode.java
@@ -493,6 +493,54 @@ public class NamespaceNode implements Node
"Namespace node may not be modified");
}
+ public Object getUserData(String s) {
+ throw new UnsupportedOperationException();
+ }
+
+ public Object setUserData(String s, Object o, org.w3c.dom.UserDataHandler handler) {
+ throw new UnsupportedOperationException();
+ }
+
+ public Object getFeature(String s, String s2) {
+ throw new UnsupportedOperationException();
+ }
+
+ public boolean isEqualNode(org.w3c.dom.Node node) {
+ throw new UnsupportedOperationException();
+ }
+
+ public String lookupNamespaceURI(String s) {
+ throw new UnsupportedOperationException();
+ }
+
+ public boolean isDefaultNamespace(String s) {
+ throw new UnsupportedOperationException();
+ }
+
+ public String lookupPrefix(String s) {
+ throw new UnsupportedOperationException();
+ }
+
+ public boolean isSameNode(org.w3c.dom.Node node) {
+ throw new UnsupportedOperationException();
+ }
+
+ public void setTextContent(String s) {
+ throw new UnsupportedOperationException();
+ }
+
+ public String getTextContent() {
+ throw new UnsupportedOperationException();
+ }
+
+ public short compareDocumentPosition(org.w3c.dom.Node node) {
+ throw new UnsupportedOperationException();
+ }
+
+ public String getBaseURI() {
+ throw new UnsupportedOperationException();
+ }
+
////////////////////////////////////////////////////////////////////
diff --git a/src/java/main/org/jaxen/jdom/DocumentNavigator.java b/src/java/main/org/jaxen/jdom/DocumentNavigator.java
index 8955fcd..c414c3a 100644
--- a/src/java/main/org/jaxen/jdom/DocumentNavigator.java
+++ b/src/java/main/org/jaxen/jdom/DocumentNavigator.java
@@ -231,7 +231,7 @@ public class DocumentNavigator extends DefaultNavigator
nsMap.put( ns.getPrefix(), new XPathNamespace(elem, ns) );
}
- current = current.getParent();
+ current = (Element) current.getParent();
}
nsMap.put( "xml", new XPathNamespace(elem, Namespace.XML_NAMESPACE) );
@@ -458,7 +458,7 @@ public class DocumentNavigator extends DefaultNavigator
}
else if ( context instanceof Text )
{
- element = ((Text)context).getParent();
+ element = (Element) ((Text)context).getParent();
}
else if ( context instanceof Attribute )
{
@@ -470,11 +470,11 @@ public class DocumentNavigator extends DefaultNavigator
}
else if ( context instanceof Comment )
{
- element = ((Comment)context).getParent();
+ element = (Element) ((Comment)context).getParent();
}
else if ( context instanceof ProcessingInstruction )
{
- element = ((ProcessingInstruction)context).getParent();
+ element = (Element) ((ProcessingInstruction)context).getParent();
}
if ( element != null )