Name: jk109818 Date: 07/18/2002
FULL PRODUCT VERSION :
java version "1.4.1-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-beta-b14)
Java HotSpot(TM) Client VM (build 1.4.1-beta-b14, mixed mode)
FULL OPERATING SYSTEM VERSION :Microsoft Windows 2000
[Version 5.00.2195]
A DESCRIPTION OF THE PROBLEM :
The overview documentation for java.sql.Timestamp says: "If
a time value that includes the fractional seconds is
desired, you must convert nanos to milliseconds
(nanos/1000000) and add this to the <code>getTime</code>
value."
This was true in JDK 1.3 and prior, but it is no longer
true in 1.4. The definition of the getTime() method has
changed: it used to return integral seconds; it now returns
the integral seconds plus fractional seconds. Therefore,
the advice in the overview section is obsolete and will
lead to incorrect programs.
REPRODUCIBILITY :
This bug can be reproduced always.
(Review ID: 159384)
======================================================================
|