Bugs item #912874, was opened at 2004-03-09 18:06
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=536613&aid=912874&group_id=73068

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Richard HALLIER (rhallier)
Assigned to: Nobody/Anonymous (nobody)
Summary: Sorting dates

Initial Comment:
When I need sorting dates in a table, I 've got an 
exception due to the mix of java.util.Date and 
java.sql.Timestamp. If the RowSorter uses 
java.sql.Timestamp.compareTo(Object date), it throws a 
ClassCastException because expecting a Timestamp 
type, not a java.util.Date. 
Does it make sense to use always the superclass as the 
reference class to execute the compareTo method (of 
course only when one is a superclass of other) ?
java.util.Date.compareTo(Timestamp) works whereas 
java.sql.Timestamp.compareTo(java.util.Date) throws a 
ClassCastException.
Thank you.
Richard.

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=536613&aid=912874&group_id=73068


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to