Issue Details (XML | Word | Printable)

Key: LANG-259
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Ralf Hauser
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons Lang

ValuedEnum.compareTo(Object other) not typesafe - it easily could be...

Created: 22/May/06 09:10 PM   Updated: 21/Oct/06 11:26 AM
Return to search
Component/s: None
Affects Version/s: 2.1
Fix Version/s: 2.2

Time Tracking:
Not Specified

Environment: all
Issue Links:
Reference
 

Resolution Date: 18/Aug/06 10:21 PM


 Description  « Hide
int org.apache.commons.lang.enums.ValuedEnum.compareTo(Object other)
is not typesafe - if the int-values are the same, it will return "0" even for two totally different sub-classes of ValuedEnum

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order