Uploaded image for project: 'Xerces2-J'
  1. Xerces2-J
  2. XERCESJ-1413

xerces doesn't build with diablo-jdk 1.6.0-7 on G/FreeBSD

    XMLWordPrintableJSON

Details

    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

      Attachments

        Activity

          People

            mrglavas@ca.ibm.com Michael Glavassevich
            aballier Alexis Ballier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: