Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.9.1
-
None
-
On Gentoo/FreeBSD 7.2, diablo-jdk from the freebsd foundation ( http://www.freebsdfoundation.org/downloads/java.shtml )
Description
It seems it uses the JDK classpath for HTML classes and breaks because it expects some older ones.
Here is a paste of the error:
[xjavac] /var/tmp/portage/dev-java/xerces-2.9.1/work/xerces-2_9_1/build/src/org/apache/html/dom/HTMLFrameElementImpl.java:28: org.apache.html.dom.HTMLFrameElementImpl is not abstract and does not override abstract method getContentDocument() in org.w3c.dom.html.HTMLFrameElement
[xjavac] public class HTMLFrameElementImpl
[xjavac] ^
[xjavac] /var/tmp/portage/dev-java/xerces-2.9.1/work/xerces-2_9_1/build/src/org/apache/html/dom/HTMLIFrameElementImpl.java:28: org.apache.html.dom.HTMLIFrameElementImpl is not abstract and does not override abstract method getContentDocument() in org.w3c.dom.html.HTMLIFrameElement
[xjavac] public class HTMLIFrameElementImpl
[xjavac] ^
[xjavac] /var/tmp/portage/dev-java/xerces-2.9.1/work/xerces-2_9_1/build/src/org/apache/html/dom/HTMLObjectElementImpl.java:28: org.apache.html.dom.HTMLObjectElementImpl is not abstract and does not override abstract method getContentDocument() in org.w3c.dom.html.HTMLObjectElement
[xjavac] public class HTMLObjectElementImpl
[xjavac] ^
[xjavac] 3 errors
Simply treating diablo/freebsd foundtation as sun JDK work:
Index: XJavac.java
===================================================================
— XJavac.java (revision 902390)
+++ XJavac.java (working copy)
@@ -68,7 +68,8 @@
(vendor.indexOf("APPLE") >= 0) ||
(vendor.indexOf("HEWLETT-PACKARD") >= 0) ||
(vendor.indexOf("KAFFE") >= 0) ||
- (vendor.indexOf("SABLE") >= 0)) {
+ (vendor.indexOf("SABLE") >= 0)
+ (vendor.indexOf("THE FREEBSD FOUNDATION") >= 0) ) {
// we're on an SUN 1.4 or higher; fiddle with the bootclasspath.
// since we can't eviscerate XML-related info here,
// we must use the classpath