java.sql.Timestamp.compareTo(Date)'s parameter may be not a Timestamp instance but just java.util.Date, in which case it should be handled separately
Changed paths: