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

SimpleDateFormat code example bug

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.3.0
    • core-libs
    • beta2
    • generic
    • generic



      Name: ssT124754 Date: 02/07/2001


      It is really annoying to demand that I provide a JVM version when
      I am submitting a bug about DOCUMENTATIOn on your WEB SITE. As my
      little act of rebellion I will give you a version string for a JVM I
      do NOT use: "Kaffe Virtual Machine", "Copyright (c) 1997 T. J. Wilkinson & Associates, London, UK.", "Engine: Just-in-time Version: 0.83"

      The sample code in
      http://java.sun.com/j2se/1.3/docs/api/java/text/SimpleDateFormat.html
      carefully constructs a SimpleTimeZone called "pdt" and doesn't appear
      to use it for anything.
        Interestingly enough, when I played around with SimpleDateFormat
      a little it appeared to assume a default timezone (amusingly enough,
      Pacific).
      Perhaps the sample code forgot to invoke the inherited
      setTimeZone() method?
      (Review ID: 116399)
      ======================================================================

            nlindenbsunw Norbert Lindenberg (Inactive)
            ssultanasunw Shaheen Sultana (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: