Bugs item #3528546, was opened at 2012-05-21 03:02
Message generated for change (Tracker Item Submitted) made by 
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=116035&aid=3528546&group_id=16035

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: James Page ()
Assigned to: Nobody/Anonymous (nobody)
Summary: RuleTest fails when compiling with OpenJDK7

Initial Comment:
The compareTo function in the dom4j Rules class is broken in that its not 
symmetric.

This breaks the RuleTest greaterThan test when executing with openjdk-7 (I 
suspect the sort algorithm has probably changed).

r1 > r2 = 1
r2 < r1 = 0 (should be -1)

Attached patch fixes this issue and adds some extra tests to cover all > < and 
==

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

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

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
dom4j-dev mailing list
dom4j-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-dev

Reply via email to