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

setIfModifiedSince() of HttpURLConnection sets invalid date of default locale.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.3.0
    • core-libs
    • beta
    • x86
    • windows_2000



      Name: boT120536 Date: 12/11/2000


      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

      java.net.HttpURLConnection.setIfModifiedSince(long ifmodifiedsince) sets
      invalid date depending on "default locale".
      If your default locale is "US", this sets valid date below:

          If-Modified-Since: Wed, 14 Jun 2000 10:09:47 GMT

      But if your default locale is, example, Locale.JAPAN, this sets invalid date
      below:

          If-Modified-Since: ??, 14 6 2000 10:09:47 GMT

      This may be because SUN forgot to set locale to "US" when set If-Modified-Since.
      (Review ID: 113553)
      ======================================================================

            michaelm Michael McMahon
            bonealsunw Bret O'neal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: