summaryrefslogtreecommitdiff
path: root/dev-java/werken-xpath/files/werken-xpath-0.9.4_beta-jpp-jdom.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-java/werken-xpath/files/werken-xpath-0.9.4_beta-jpp-jdom.patch
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-java/werken-xpath/files/werken-xpath-0.9.4_beta-jpp-jdom.patch')
-rw-r--r--dev-java/werken-xpath/files/werken-xpath-0.9.4_beta-jpp-jdom.patch86
1 files changed, 86 insertions, 0 deletions
diff --git a/dev-java/werken-xpath/files/werken-xpath-0.9.4_beta-jpp-jdom.patch b/dev-java/werken-xpath/files/werken-xpath-0.9.4_beta-jpp-jdom.patch
new file mode 100644
index 000000000000..ba2b268f1c89
--- /dev/null
+++ b/dev-java/werken-xpath/files/werken-xpath-0.9.4_beta-jpp-jdom.patch
@@ -0,0 +1,86 @@
+diff -Nru werken.xpath.orig/src/com/werken/xpath/function/StringFunction.java werken.xpath/src/com/werken/xpath/function/StringFunction.java
+--- werken.xpath.orig/src/com/werken/xpath/function/StringFunction.java 2000-10-24 06:30:00.000000000 +0300
++++ werken.xpath/src/com/werken/xpath/function/StringFunction.java 2003-03-02 01:56:03.000000000 +0200
+@@ -71,7 +71,7 @@
+
+ public static String evaluate(Element elem)
+ {
+- List content = elem.getMixedContent();
++ List content = elem.getContent();
+
+ Iterator contentIter = content.iterator();
+ Object each = null;
+diff -Nru werken.xpath.orig/src/com/werken/xpath/impl/NodeTypeStep.java werken.xpath/src/com/werken/xpath/impl/NodeTypeStep.java
+--- werken.xpath.orig/src/com/werken/xpath/impl/NodeTypeStep.java 2000-10-26 04:09:41.000000000 +0300
++++ werken.xpath/src/com/werken/xpath/impl/NodeTypeStep.java 2003-03-02 01:56:03.000000000 +0200
+@@ -84,16 +84,16 @@
+ {
+ if ( isAbsolute() )
+ {
+- results.addAll( applyToNodes( ((Element)node).getDocument().getMixedContent() ) );
++ results.addAll( applyToNodes( ((Element)node).getDocument().getContent() ) );
+ }
+ else
+ {
+- results.addAll( applyToNodes( ((Element)node).getMixedContent() ) );
++ results.addAll( applyToNodes( ((Element)node).getContent() ) );
+ }
+ }
+ else if ( node instanceof Document )
+ {
+- results.addAll( applyToNodes( ((Document)node).getMixedContent() ) );
++ results.addAll( applyToNodes( ((Document)node).getContent() ) );
+ }
+
+ return results;
+diff -Nru werken.xpath.orig/src/com/werken/xpath/impl/UnAbbrStep.java werken.xpath/src/com/werken/xpath/impl/UnAbbrStep.java
+--- werken.xpath.orig/src/com/werken/xpath/impl/UnAbbrStep.java 2000-10-31 22:20:56.000000000 +0200
++++ werken.xpath/src/com/werken/xpath/impl/UnAbbrStep.java 2003-03-02 01:56:03.000000000 +0200
+@@ -227,7 +227,7 @@
+
+ if ( node instanceof Element )
+ {
+- List children = ((Element)node).getMixedContent();
++ List children = ((Element)node).getContent();
+
+ results.addAll( applyTo( children,
+ support,
+@@ -235,7 +235,7 @@
+ }
+ else if ( node instanceof Document )
+ {
+- List children = ((Document)node).getMixedContent();
++ List children = ((Document)node).getContent();
+
+ results.addAll( applyTo( children,
+ support,
+@@ -256,7 +256,7 @@
+
+ if ( node instanceof Element )
+ {
+- List children = ((Element)node).getMixedContent();
++ List children = ((Element)node).getContent();
+
+ results.addAll( applyTo( children,
+ support,
+@@ -264,7 +264,7 @@
+ }
+ else if ( node instanceof Document )
+ {
+- List children = ((Document)node).getMixedContent();
++ List children = ((Document)node).getContent();
+
+ results.addAll( applyTo( children,
+ support,
+diff -Nru werken.xpath.orig/test/src/com/werken/xpath/test/Driver.java werken.xpath/test/src/com/werken/xpath/test/Driver.java
+--- werken.xpath.orig/test/src/com/werken/xpath/test/Driver.java 2000-11-09 19:43:30.000000000 +0200
++++ werken.xpath/test/src/com/werken/xpath/test/Driver.java 2003-03-02 01:56:55.000000000 +0200
+@@ -412,7 +412,7 @@
+ elemID = "";
+ }
+
+- resultNode.addAttribute("id", elemID);
++ resultNode.setAttribute("id", elemID);
+ node.addContent( resultNode );
+ results.addContent( node );
+ }