From 5c36a74a8627995324245321390a47645879d98779dc91aae40986081418e2c1 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Tue, 23 Jan 2007 17:49:12 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xerces-j2?expand=0&rev=3 --- ...j2-2.8.1_new_unsupported_dom_methods.patch | 74 +++++++++++++++++++ xerces-j2-bootstrap.spec | 2 +- xerces-j2.changes | 5 ++ xerces-j2.spec | 6 +- 4 files changed, 85 insertions(+), 2 deletions(-) create mode 100644 xerces-j2-2.8.1_new_unsupported_dom_methods.patch diff --git a/xerces-j2-2.8.1_new_unsupported_dom_methods.patch b/xerces-j2-2.8.1_new_unsupported_dom_methods.patch new file mode 100644 index 0000000..8fa007b --- /dev/null +++ b/xerces-j2-2.8.1_new_unsupported_dom_methods.patch @@ -0,0 +1,74 @@ +Index: xerces-2_8_1/src/org/apache/html/dom/HTMLFrameElementImpl.java +=================================================================== +--- xerces-2_8_1.orig/src/org/apache/html/dom/HTMLFrameElementImpl.java ++++ xerces-2_8_1/src/org/apache/html/dom/HTMLFrameElementImpl.java +@@ -16,6 +16,8 @@ + package org.apache.html.dom; + + import org.w3c.dom.html.HTMLFrameElement; ++import org.w3c.dom.Document; ++import org.w3c.dom.DOMException; + + /** + * @xerces.internal +@@ -28,6 +30,10 @@ public class HTMLFrameElementImpl + extends HTMLElementImpl + implements HTMLFrameElement + { ++ public Document getContentDocument() { ++ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "method not supportet"); ++ } ++ + + private static final long serialVersionUID = 635237057173695984L; + +Index: xerces-2_8_1/src/org/apache/html/dom/HTMLIFrameElementImpl.java +=================================================================== +--- xerces-2_8_1.orig/src/org/apache/html/dom/HTMLIFrameElementImpl.java ++++ xerces-2_8_1/src/org/apache/html/dom/HTMLIFrameElementImpl.java +@@ -14,6 +14,9 @@ + * limitations under the License. + */ + package org.apache.html.dom; ++import org.w3c.dom.Document; ++import org.w3c.dom.DOMException; ++ + + import org.w3c.dom.html.HTMLIFrameElement; + +@@ -31,6 +34,11 @@ public class HTMLIFrameElementImpl + + private static final long serialVersionUID = 2393622754706230429L; + ++ public Document getContentDocument() { ++ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "method not supportet"); ++ } ++ ++ + public String getAlign() + { + return capitalize( getAttribute( "align" ) ); +Index: xerces-2_8_1/src/org/apache/html/dom/HTMLObjectElementImpl.java +=================================================================== +--- xerces-2_8_1.orig/src/org/apache/html/dom/HTMLObjectElementImpl.java ++++ xerces-2_8_1/src/org/apache/html/dom/HTMLObjectElementImpl.java +@@ -16,6 +16,8 @@ + package org.apache.html.dom; + + import org.w3c.dom.html.HTMLObjectElement; ++import org.w3c.dom.Document; ++import org.w3c.dom.DOMException; + + /** + * @xerces.internal +@@ -31,6 +33,10 @@ public class HTMLObjectElementImpl + + private static final long serialVersionUID = 2276953229932965067L; + ++ public Document getContentDocument() { ++ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "method not supportet"); ++ } ++ + public String getCode() + { + return getAttribute( "code" ); diff --git a/xerces-j2-bootstrap.spec b/xerces-j2-bootstrap.spec index 162ddcf..ef32ee6 100644 --- a/xerces-j2-bootstrap.spec +++ b/xerces-j2-bootstrap.spec @@ -25,7 +25,7 @@ BuildRequires: update-alternatives Summary: Java XML parser Group: Development/Libraries/Java Version: 2.8.1 -Release: 33 +Release: 34 Requires: xml-commons-which-bootstrap Requires: xml-commons-apis-bootstrap Requires: xml-commons-resolver-bootstrap diff --git a/xerces-j2.changes b/xerces-j2.changes index f1b5283..66bfead 100644 --- a/xerces-j2.changes +++ b/xerces-j2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jan 23 17:05:07 CET 2007 - dbornkessel@suse.de + +- added dummy methods for not yet supported new dom methods + ------------------------------------------------------------------- Tue Jan 16 18:29:04 CET 2007 - dbornkessel@suse.de diff --git a/xerces-j2.spec b/xerces-j2.spec index 9d778bc..e564b66 100644 --- a/xerces-j2.spec +++ b/xerces-j2.spec @@ -18,7 +18,7 @@ BuildRequires: java2-devel-packages %define release 3jpp %define section free Version: 2.8.1 -Release: 28 +Release: 29 Summary: Java XML parser License: The Apache Software License URL: http://xml.apache.org/xerces2-j/ @@ -29,6 +29,7 @@ Source2: %{name}-constants.sh Source3: Xerces-J-tools.%{version}.tar.bz2 Patch0: %{name}-build.patch Patch1: java150_build.patch +Patch2: %{name}-%{version}_new_unsupported_dom_methods.patch Provides: jaxp_parser_impl PreReq: update-alternatives, /bin/ln # some build requirements removed to enable jpackage bootstrap. this is @@ -307,6 +308,7 @@ This package contains the APIs subproject of xml-commons. %setup -T -D -n xerces-%{cvs_version} #%patch0 -p1 -b .build %patch1 -p1 +%patch2 -p1 %build ## this uses the ant.jar provided by the xerces packages. Tough luck, @@ -470,6 +472,8 @@ ln -s %{name}-xni-%{version} %{_javadocdir}/%{name}-xni %{_bindir}/* %changelog -n xerces-j2 +* Tue Jan 23 2007 - dbornkessel@suse.de +- added dummy methods for not yet supported new dom methods * Tue Jan 16 2007 - dbornkessel@suse.de - created sub-packages xml-apis and xml-resolver to avoid Bug #232127 * Wed Nov 15 2006 - dbornkessel@suse.de