OBS User unknown 2007-01-23 17:49:12 +00:00 committed by Git OBS Bridge
parent fcd90ceb9c
commit 5c36a74a86
4 changed files with 85 additions and 2 deletions

View File

@ -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" );

View File

@ -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

View File

@ -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

View File

@ -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