File: getContentDocument.patch

package info (click to toggle)
libxerces2-java 2.12.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 12,608 kB
  • sloc: java: 127,779; xml: 13,596; sh: 39; makefile: 10
file content (84 lines) | stat: -rw-r--r-- 2,392 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
From: Markus Koschany <apo@debian.org>
Date: Sat, 12 May 2018 22:12:44 +0200
Subject: getContentDocument

Fix FTBFS with Java10 due to missing method getContentDocument.

Forwarded: no
---
 src/org/apache/html/dom/HTMLFrameElementImpl.java  | 7 +++++++
 src/org/apache/html/dom/HTMLIFrameElementImpl.java | 5 +++++
 src/org/apache/html/dom/HTMLObjectElementImpl.java | 5 +++++
 3 files changed, 17 insertions(+)

diff --git a/src/org/apache/html/dom/HTMLFrameElementImpl.java b/src/org/apache/html/dom/HTMLFrameElementImpl.java
index 18ab953..e90a592 100644
--- a/src/org/apache/html/dom/HTMLFrameElementImpl.java
+++ b/src/org/apache/html/dom/HTMLFrameElementImpl.java
@@ -17,6 +17,8 @@
 package org.apache.html.dom;
 
 import org.w3c.dom.html.HTMLFrameElement;
+import org.w3c.dom.Document;
+
 
 /**
  * @xerces.internal
@@ -127,6 +129,11 @@ public class HTMLFrameElementImpl
         setAttribute( "src", src );
     }
 
+    public Document getContentDocument()
+    {
+        return null;
+    }
+
     
     /**
      * Constructor requires owner document.
diff --git a/src/org/apache/html/dom/HTMLIFrameElementImpl.java b/src/org/apache/html/dom/HTMLIFrameElementImpl.java
index c326557..287ba9e 100644
--- a/src/org/apache/html/dom/HTMLIFrameElementImpl.java
+++ b/src/org/apache/html/dom/HTMLIFrameElementImpl.java
@@ -17,6 +17,7 @@
 package org.apache.html.dom;
 
 import org.w3c.dom.html.HTMLIFrameElement;
+import org.w3c.dom.Document;
 
 /**
  * @xerces.internal
@@ -150,6 +151,10 @@ public class HTMLIFrameElementImpl
         setAttribute( "width", width );
     }
 
+    public Document getContentDocument()
+    {
+        return null;
+    }
     
     /**
      * Constructor requires owner document.
diff --git a/src/org/apache/html/dom/HTMLObjectElementImpl.java b/src/org/apache/html/dom/HTMLObjectElementImpl.java
index b065e69..cd27fc8 100644
--- a/src/org/apache/html/dom/HTMLObjectElementImpl.java
+++ b/src/org/apache/html/dom/HTMLObjectElementImpl.java
@@ -17,6 +17,7 @@
 package org.apache.html.dom;
 
 import org.w3c.dom.html.HTMLObjectElement;
+import org.w3c.dom.Document;
 
 /**
  * @xerces.internal
@@ -239,6 +240,10 @@ public class HTMLObjectElementImpl
         setAttribute( "width", width );
     }
 
+    public Document getContentDocument()
+    {
+        return null;
+    }
     
     
     /**