public class DateTimestampBug { public static void main(String[] args) throws InterruptedException { for (int i = 0; i < 10000; i++) { java.util.Date d = new java.util.Date(); java.sql.Timestamp ts = new java.sql.Timestamp(d.getTime()); System.out.println((d.after(ts) ? "FAIL! (" : "Huh? (") + d.getTime() + ")"); Thread.sleep(1); } } }