This commit is contained in:
parent
fcd90ceb9c
commit
5c36a74a86
74
xerces-j2-2.8.1_new_unsupported_dom_methods.patch
Normal file
74
xerces-j2-2.8.1_new_unsupported_dom_methods.patch
Normal 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" );
|
@ -25,7 +25,7 @@ BuildRequires: update-alternatives
|
|||||||
Summary: Java XML parser
|
Summary: Java XML parser
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
Version: 2.8.1
|
Version: 2.8.1
|
||||||
Release: 33
|
Release: 34
|
||||||
Requires: xml-commons-which-bootstrap
|
Requires: xml-commons-which-bootstrap
|
||||||
Requires: xml-commons-apis-bootstrap
|
Requires: xml-commons-apis-bootstrap
|
||||||
Requires: xml-commons-resolver-bootstrap
|
Requires: xml-commons-resolver-bootstrap
|
||||||
|
@ -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
|
Tue Jan 16 18:29:04 CET 2007 - dbornkessel@suse.de
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ BuildRequires: java2-devel-packages
|
|||||||
%define release 3jpp
|
%define release 3jpp
|
||||||
%define section free
|
%define section free
|
||||||
Version: 2.8.1
|
Version: 2.8.1
|
||||||
Release: 28
|
Release: 29
|
||||||
Summary: Java XML parser
|
Summary: Java XML parser
|
||||||
License: The Apache Software License
|
License: The Apache Software License
|
||||||
URL: http://xml.apache.org/xerces2-j/
|
URL: http://xml.apache.org/xerces2-j/
|
||||||
@ -29,6 +29,7 @@ Source2: %{name}-constants.sh
|
|||||||
Source3: Xerces-J-tools.%{version}.tar.bz2
|
Source3: Xerces-J-tools.%{version}.tar.bz2
|
||||||
Patch0: %{name}-build.patch
|
Patch0: %{name}-build.patch
|
||||||
Patch1: java150_build.patch
|
Patch1: java150_build.patch
|
||||||
|
Patch2: %{name}-%{version}_new_unsupported_dom_methods.patch
|
||||||
Provides: jaxp_parser_impl
|
Provides: jaxp_parser_impl
|
||||||
PreReq: update-alternatives, /bin/ln
|
PreReq: update-alternatives, /bin/ln
|
||||||
# some build requirements removed to enable jpackage bootstrap. this is
|
# 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}
|
%setup -T -D -n xerces-%{cvs_version}
|
||||||
#%patch0 -p1 -b .build
|
#%patch0 -p1 -b .build
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
|
%patch2 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
## this uses the ant.jar provided by the xerces packages. Tough luck,
|
## 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}/*
|
%{_bindir}/*
|
||||||
|
|
||||||
%changelog -n xerces-j2
|
%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
|
* Tue Jan 16 2007 - dbornkessel@suse.de
|
||||||
- created sub-packages xml-apis and xml-resolver to avoid Bug #232127
|
- created sub-packages xml-apis and xml-resolver to avoid Bug #232127
|
||||||
* Wed Nov 15 2006 - dbornkessel@suse.de
|
* Wed Nov 15 2006 - dbornkessel@suse.de
|
||||||
|
Loading…
Reference in New Issue
Block a user