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

Typo in java.sql.Timestamp.toString() method Javadoc.

    XMLWordPrintable

Details

    • b154
    • Not verified

    Backports

      Description

        A DESCRIPTION OF THE PROBLEM :
        The Javadoc for the java.sql.Timestamp.toString() method states "where ffffffffff indicates nanoseconds". There are 10 f's in the quoted line, however the actual format (which is correct) only has 9 f's.

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        Formats a timestamp in JDBC timestamp escape format. yyyy-mm-dd hh:mm:ss.fffffffff, where fffffffff indicates nanoseconds.
        ACTUAL -
        Formats a timestamp in JDBC timestamp escape format. yyyy-mm-dd hh:mm:ss.fffffffff, where ffffffffff indicates nanoseconds.

        URL OF FAULTY DOCUMENTATION :
        https://docs.oracle.com/javase/8/docs/api/java/sql/Timestamp.html#toString--

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: