Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8067995

a bug of Timestamp.valueOf()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 7u51
    • core-libs
    • x86_64
    • linux_ubuntu

      FULL PRODUCT VERSION :
      Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
      Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Linux lwm 3.2.0-74-generic #109-Ubuntu SMP Tue Dec 9 16:45:49 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux


      A DESCRIPTION OF THE PROBLEM :
      System.out.println(Timestamp.valueOf("1980-05-01 00:00:00").getTime());
      System.out.println(Timestamp.valueOf("1980-05-01 01:00:00").getTime());

      //output
      //325962000000
      //325962000000
      //whenever the time between 1980-05-01 00:00:00 TO 1980-05-01 01:00:00,
      //it always been the same value(325962000000) of Timestamp.valueOf();


      REPRODUCIBILITY :
      This bug can be reproduced always.

            lancea Lance Andersen
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: