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

REGRESSION: UK and France: bad minimal days in first week (2)

    Details

    • Subcomponent:
    • Resolved In Build:
      beta2
    • CPU:
      sparc
    • OS:
      solaris_2.6
    • Verification:
      Verified

      Backports

        Description

        Name: sdR10048 Date: 11/26/2003


        This bug is shadow of 4944756 (which was
        closed as dup of fixed bug 4518811).
        Please *do not close* this one linke that - it is not fixed yet.
        Mini test still fails.
        And GregorianCalendar0009 still fails too.

        Filed By : SPB JCK team (###@###.###)
        JDK : java full version "1.5.0-beta-b29"
        JCK : 1.5
        Platform[s] : Solaris
        switch/Mode :
        JCK test owner : http://javaweb.eng/jct/sqe/JCK-tck/usr/owners.jto
        Failing Test [s] :
        api/java_util/GregorianCalendar/index.html#Ctor[GregorianCalendar0009]
        Problem description
        ===================
        getMinimalDaysInFirstWeek returns wrong value for UK and France locales.
        According to ISO 8601 the valid numbers are 4, 4 accordingly.
        See some info at http://www.pjh2.de/datetime/weeknumber/wnd.php.
            
        Minimized test:
        ===============
        ------- J.java -------
        import java.util.*;
        public class J {
            public static void main(String[] args) {
                Locale locales[] = {Locale.UK, Locale.FRANCE};
                GregorianCalendar cal = null;
                for (int i=0; i<locales.length; i++) {
                    cal = new GregorianCalendar(locales[i]);
                    System.out.println(locales[i] + " : " +
                                       cal.getMinimalDaysInFirstWeek());
                }
            }
        }
        ------- end-of-J.java -------
        Minimized test output:
        ======================
        ] (happy) ~/tmp
        ] java -showversion J
        java version "1.5.0-beta"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b29)
        Java HotSpot(TM) Client VM (build 1.5.0-beta-b29, mixed mode)

        en_GB : 1
        fr_FR : 1

        ] (happy) ~/tmp
        ] locale
        LANG=ru_RU.KOI8-R
        LC_CTYPE="ru_RU.KOI8-R"
        LC_NUMERIC="ru_RU.KOI8-R"
        LC_TIME="ru_RU.KOI8-R"
        LC_COLLATE="ru_RU.KOI8-R"
        LC_MONETARY="ru_RU.KOI8-R"
        LC_MESSAGES="ru_RU.KOI8-R"
        LC_PAPER="ru_RU.KOI8-R"
        LC_NAME="ru_RU.KOI8-R"
        LC_ADDRESS="ru_RU.KOI8-R"
        LC_TELEPHONE="ru_RU.KOI8-R"
        LC_MEASUREMENT="ru_RU.KOI8-R"
        LC_IDENTIFICATION="ru_RU.KOI8-R"
        LC_ALL=

        JCK test source location:
        ==========================
        /java/re/jck/1.5/promoted/latest/JCK-runtime-15/tests

        ======================================================================

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mfang Michael Fang (Inactive)
                  Reporter:
                  dsvsunw Dsv Dsv (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: