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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 8
    • core-libs
    • b63
    • x86
    • windows
    • Verified

      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.

            naoto Naoto Sato
            yhuang Yong Huang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: