Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 75646 - dom4j doesn't compile with jdk 1.5
Summary: dom4j doesn't compile with jdk 1.5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-25 12:44 UTC by Patrizio Bassi
Modified: 2006-02-25 05:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
dom4j-9999.ebuild (dom4j-9999.ebuild,1.95 KB, text/plain)
2006-02-25 05:27 UTC, Beech Horn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrizio Bassi 2004-12-25 12:44:50 UTC
compile:
    [javac] Compiling 118 source files to /mnt/Dati/Gentoo/tmp/portage/dom4j-1.5/work/dom4j-1.5/build/classes
    [javac] This version of java does not support the classic compiler; upgrading to modern
    [javac] /mnt/Dati/Gentoo/tmp/portage/dom4j-1.5/work/dom4j-1.5/build/src/org/dom4j/dom/DOMAttribute.java:26: org.dom4j.dom.DOMAttribute is not abstract and does not override abstract method getSchemaTypeInfo() in org.w3c.dom.Attr
    [javac] public class DOMAttribute extends DefaultAttribute implements org.w3c.dom.Attr {
    [javac]        ^
    [javac] /mnt/Dati/Gentoo/tmp/portage/dom4j-1.5/work/dom4j-1.5/build/src/org/dom4j/dom/DOMElement.java:32: org.dom4j.dom.DOMElement is not abstract and does not override abstract method setIdAttributeNode(org.w3c.dom.Attr,boolean) in org.w3c.dom.Element
    [javac] public class DOMElement extends DefaultElement implements org.w3c.dom.Element {
    [javac]        ^
    [javac] /mnt/Dati/Gentoo/tmp/portage/dom4j-1.5/work/dom4j-1.5/build/src/org/dom4j/dom/DOMCDATA.java:26: org.dom4j.dom.DOMCDATA is not abstract and does not override abstract method replaceWholeText(java.lang.String) in org.w3c.dom.Text
    [javac] public class DOMCDATA extends DefaultCDATA implements org.w3c.dom.CDATASection {
    [javac]        ^
    [javac] /mnt/Dati/Gentoo/tmp/portage/dom4j-1.5/work/dom4j-1.5/build/src/org/dom4j/dom/DOMComment.java:25: org.dom4j.dom.DOMComment is not abstract and does not override abstract method getUserData(java.lang.String) in org.w3c.dom.Node
    [javac] public class DOMComment extends DefaultComment implements org.w3c.dom.Comment {
    [javac]        ^
    [javac] /mnt/Dati/Gentoo/tmp/portage/dom4j-1.5/work/dom4j-1.5/build/src/org/dom4j/dom/DOMDocument.java:27: org.dom4j.dom.DOMDocument is not abstract and does not override abstract method renameNode(org.w3c.dom.Node,java.lang.String,java.lang.String) in org.w3c.dom.Document
    [javac] public class DOMDocument extends DefaultDocument implements org.w3c.dom.Document {
    [javac]        ^
    [javac] /mnt/Dati/Gentoo/tmp/portage/dom4j-1.5/work/dom4j-1.5/build/src/org/dom4j/dom/DOMDocumentFactory.java:33: org.dom4j.dom.DOMDocumentFactory is not abstract and does not override abstract method getFeature(java.lang.String,java.lang.String) in org.w3c.dom.DOMImplementation
    [javac] public class DOMDocumentFactory extends DocumentFactory implements org.w3c.dom.DOMImplementation {
    [javac]        ^
    [javac] /mnt/Dati/Gentoo/tmp/portage/dom4j-1.5/work/dom4j-1.5/build/src/org/dom4j/dom/DOMDocumentType.java:24: org.dom4j.dom.DOMDocumentType is not abstract and does not override abstract method getUserData(java.lang.String) in org.w3c.dom.Node
    [javac] public class DOMDocumentType extends DefaultDocumentType implements org.w3c.dom.DocumentType {


[CUT]

i tried the 1.5.2 package (available) same errors :(

i started to implement the abstract methods, but they are tooooo many!
and i'm not too good with build.xml syntax
Comment 1 Saleem Abdulrasool (RETIRED) gentoo-dev 2004-12-25 13:19:25 UTC
Minor random note, since the ebuild will be re-commited to cvs at some point, we should fix DEPEND to include the dependency on dev-java/ant-core
Comment 2 Patrizio Bassi 2004-12-26 02:14:09 UTC
yes, but i have ant-core installed
Comment 3 Patrizio Bassi 2005-01-13 05:14:25 UTC
ok...the problem seems that this app doesn't override some virtually declared methods.

so i started to patch manually and add compiler needs.
but as i added functions, more and more errors complaining missin overrrides came out.

so i got tired and i did a package with jdk 1.4, and merged it.

i needed to let eclipse-sdk install and it runs with no problem, infact.

runtime seems good so...

i tried 1.5.2 (yes...you can bump!!!!) but got similar errors.

maybe you can contact the dev team and make them know...


i don't close this bug but i thnk you can close it. think about this.
a 1.5 patch will never be out..too big...

a version bump is needed
Comment 4 Jan Brinkmann (RETIRED) gentoo-dev 2005-01-13 09:21:37 UTC
the upstream project already knows about this problem, also see:

http://sourceforge.net/tracker/index.php?func=detail&aid=906019&group_id=16035&atid=116035
Comment 5 Jan Brinkmann (RETIRED) gentoo-dev 2005-01-23 06:07:16 UTC
closing this one because all 'not working with jdk 1.5' are now tracked in #79206:

http://bugs.gentoo.org/show_bug.cgi?id=79206
Comment 6 Beech Horn 2006-02-25 05:27:45 UTC
Created attachment 80687 [details]
dom4j-9999.ebuild

CVS ebuild (for 1.6.2 at time of writing) works with sun-jdk-1.5.0.06.