Patches item #1175429, was opened at 2005-04-02 18:35
Message generated for change (Comment added) made by filipjirsak
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=316035&aid=1175429&group_id=16035

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Filip Jirsák (filipjirsak)
Assigned to: Nobody/Anonymous (nobody)
Summary: JDK 5.0 dummy workaround

Initial Comment:
This patch appends EMPTY! methods overriding new
methods in org.w3c.dom.* interfaces introduced in JDK
5.0. All methods are empty and contains comment "//
TODO Auto-generated method stub". Thanks eclipse :-)
Now it may compile under JDK 5.0.

----------------------------------------------------------------------

>Comment By: Filip Jirsák (filipjirsak)
Date: 2005-04-03 16:43

Message:
Logged In: YES 
user_id=1175071

There are some new interfaces in JDK 5.0 (for example
org.w3c.dom.TypeInfo). It is probably related to DOM Level 3.
We can test presence of this class when building jar. When
this class is present, we can patch source in build
directory. But Ant's patch task depends on external patch,
which is not present everywhere (yes, my Windows station
didn't have it). So there should be patched files prepared
in distribution archive.
So I have added two new tasks in build.xml:
"patch-for-jdk5" patches source files and store them into
"src/jdk50". This should be run before creating distribution
package. (I expect patch "jdk50.patch" in "src/patch
directory").
Second task "prepare-jdk5" is conditional (it is executed
only when org.w3c.dom.TypeInfo is available). It overwrites
files in build dir with patched version. The task
"prepare-src" newly depends on "prepare-jdk5".
Patch for build.xml is attached.
I can't test task "patch-for-jdk50", because I have not
patch on my workstation.

----------------------------------------------------------------------

Comment By: Maarten Coene (maartenc)
Date: 2005-04-02 23:18

Message:
Logged In: YES 
user_id=178745

If I apply your patch, dom4j won't compile anymore under JDK
1.4 ! Any idea how we can solve this?

Maarten

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=316035&aid=1175429&group_id=16035


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
dom4j-dev mailing list
dom4j-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-dev

Reply via email to