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

java.sql.Timestamp constructor works wrong when nano is outside bounds

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      1.1
    • CPU:
      sparc
    • OS:
      solaris_2.5
    • Verification:
      Not verified

      Description

      === Here is the test demonstrating the bug ===
      import java.sql.Timestamp;
      class java_sql_Timestamp2 {
        public static void main (String args[]) {
          Timestamp t=new java.sql.Timestamp(96,8,13,5,8,13,1000000000);
          System.out.println(t);
        }
      }

      === Here is the test output ===
      1996-09-13 05:08:13.0

        Attachments

          Activity

            People

            Assignee:
            mhapnersunw Mark Hapner (Inactive)
            Reporter:
            mgorshen Mikhail Gorshenev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: