| author | lancea |
| Tue Jan 11 12:36:43 2011 -0500 (2 years ago) | |
| changeset 498 | 593007922695 |
| parent 497 | e76e39bf0e83 |
| child 499 | fe6a8ddfe33d |
| child 510 | bf0758eb099e |
--- a/src/share/classes/java/sql/Timestamp.java Tue Apr 05 16:50:18 2011 -0700+++ b/src/share/classes/java/sql/Timestamp.java Tue Jan 11 12:36:43 2011 -0500@@ -488,7 +488,9 @@ public class Timestamp extends java.util* @since 1.4*/public int compareTo(Timestamp ts) {- int i = super.compareTo(ts);+ long thisTime = this.getTime();+ long anotherTime = ts.getTime();+ int i = (thisTime<anotherTime ? -1 :(thisTime==anotherTime?0 :1));if (i == 0) {if (nanos > ts.nanos) {return 1;