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

HOST Adapter: one extra empty space in the end of the pattern string

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b63
    • CPU:
      x86
    • OS:
      windows
    • Verification:
      Verified

      Description

      Test is performed on windows 7 and 2008 zh_CN, but the problem may also happen on windows in other locales.

      Compile and run attached Java program, HostFormatTest.java, with adapter setting Djava.locale.providers=HOST

      The pattern string of short date contains one extra empty space in the end. It's "yyyy/M/d ", but the actual pattern string on windows is "yyyy/M/d". There is no empty space in the end of the text. For DateFormat.Long, same problem is also there. The screenshot of output is attached.

      This problem is minor because the extra empty space in the end of the pattern text will not affect the format result.

        Attachments

          Activity

            People

            • Assignee:
              naoto Naoto Sato
              Reporter:
              yhuang Yong Huang
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: