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

Japanese FULL DateFormat does not has day of week

XMLWordPrintable

      FULL PRODUCT VERSION :
      java version "1.5.0_11"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
      Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Windows

      A DESCRIPTION OF THE PROBLEM :
      In JDK 1.5_0_11, Japanese FULL DateFormat does not have day of week in the fomort pattern, which is different from the pattern in JDK 1.4. Any ideas?


      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------

      import java.util.Locale;
      import java.util.Date;
      import java.text.DateFormat;
      import java.text.SimpleDateFormat;
      import java.text.ParseException;

      public class Test {

              public static void main(String[] args)
              {
                      Locale l = new Locale("ja", "JP");
                      DateFormat dff = DateFormat.getDateTimeInstance(DateFormat.FULL,
       DateFormat.FULL, l);
                      SimpleDateFormat sdf = (SimpleDateFormat) dff;
                       System.out.println(sdf.toPattern());
              }

      }
      ---------- END SOURCE ----------

            jtusla Jiri Tusla (Inactive)
            peytoia Yuka Kamiya (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: