You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tony Wu (JIRA)" <ji...@apache.org> on 2007/01/08 10:39:27 UTC

[jira] Created: (HARMONY-2947) [classlib][luni]GregorianCalendar.getLeastMaximum(Calendar.WEEK_OF_YEAR) always return 50

[classlib][luni]GregorianCalendar.getLeastMaximum(Calendar.WEEK_OF_YEAR) always return 50
-----------------------------------------------------------------------------------------

                 Key: HARMONY-2947
                 URL: https://issues.apache.org/jira/browse/HARMONY-2947
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Tony Wu


GregorianCalendar.getLeastMaximum(Calendar.WEEK_OF_YEAR) always return 50 in Harmony.
But spec says that is should take into consideration the current values of the getFirstDayOfWeek, getMinimalDaysInFirstWeek, getGregorianChange and getTimeZone methods.

For example, following testcase fails on Harmony but passes on RI.

public void test() {
        Date date = new Date(Date.parse("Jan 1 00:00:01 GMT 2000"));
        GregorianCalendar gc = new GregorianCalendar();
        gc.setGregorianChange(date);
        gc.setMinimalDaysInFirstWeek(7);
        assertEquals(52, gc.getLeastMaximum(Calendar.WEEK_OF_YEAR));
    }


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-2947) [classlib][luni]GregorianCalendar.getLeastMaximum(Calendar.WEEK_OF_YEAR) always return 50

Posted by "Tony Wu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2947?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tony Wu updated HARMONY-2947:
-----------------------------

    Patch Info: [Patch Available]

> [classlib][luni]GregorianCalendar.getLeastMaximum(Calendar.WEEK_OF_YEAR) always return 50
> -----------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2947
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2947
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Tony Wu
>         Attachments: harmony-2947.diff
>
>
> GregorianCalendar.getLeastMaximum(Calendar.WEEK_OF_YEAR) always return 50 in Harmony.
> But spec says that it should take into consideration the current values of the getFirstDayOfWeek, getMinimalDaysInFirstWeek, getGregorianChange and getTimeZone methods.
> For example, following testcase fails on Harmony but passes on RI.
> public void test() {
>         Date date = new Date(Date.parse("Jan 1 00:00:01 GMT 2000"));
>         GregorianCalendar gc = new GregorianCalendar();
>         gc.setGregorianChange(date);
>         gc.setMinimalDaysInFirstWeek(7);
>         assertEquals(52, gc.getLeastMaximum(Calendar.WEEK_OF_YEAR));
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-2947) [classlib][luni]GregorianCalendar.getLeastMaximum(Calendar.WEEK_OF_YEAR) always return 50

Posted by "Tony Wu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-2947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12469311 ] 

Tony Wu commented on HARMONY-2947:
----------------------------------

verified at r502058, thanks Richard.

> [classlib][luni]GregorianCalendar.getLeastMaximum(Calendar.WEEK_OF_YEAR) always return 50
> -----------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2947
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2947
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Tony Wu
>         Assigned To: Richard Liang
>         Attachments: harmony-2947.diff
>
>
> GregorianCalendar.getLeastMaximum(Calendar.WEEK_OF_YEAR) always return 50 in Harmony.
> But spec says that it should take into consideration the current values of the getFirstDayOfWeek, getMinimalDaysInFirstWeek, getGregorianChange and getTimeZone methods.
> For example, following testcase fails on Harmony but passes on RI.
> public void test() {
>         Date date = new Date(Date.parse("Jan 1 00:00:01 GMT 2000"));
>         GregorianCalendar gc = new GregorianCalendar();
>         gc.setGregorianChange(date);
>         gc.setMinimalDaysInFirstWeek(7);
>         assertEquals(52, gc.getLeastMaximum(Calendar.WEEK_OF_YEAR));
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-2947) [classlib][luni]GregorianCalendar.getLeastMaximum(Calendar.WEEK_OF_YEAR) always return 50

Posted by "Tony Wu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2947?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tony Wu updated HARMONY-2947:
-----------------------------

    Attachment: harmony-2947.diff

would you please try the patch, thanks a lot!

> [classlib][luni]GregorianCalendar.getLeastMaximum(Calendar.WEEK_OF_YEAR) always return 50
> -----------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2947
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2947
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Tony Wu
>         Attachments: harmony-2947.diff
>
>
> GregorianCalendar.getLeastMaximum(Calendar.WEEK_OF_YEAR) always return 50 in Harmony.
> But spec says that it should take into consideration the current values of the getFirstDayOfWeek, getMinimalDaysInFirstWeek, getGregorianChange and getTimeZone methods.
> For example, following testcase fails on Harmony but passes on RI.
> public void test() {
>         Date date = new Date(Date.parse("Jan 1 00:00:01 GMT 2000"));
>         GregorianCalendar gc = new GregorianCalendar();
>         gc.setGregorianChange(date);
>         gc.setMinimalDaysInFirstWeek(7);
>         assertEquals(52, gc.getLeastMaximum(Calendar.WEEK_OF_YEAR));
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-2947) [classlib][luni]GregorianCalendar.getLeastMaximum(Calendar.WEEK_OF_YEAR) always return 50

Posted by "Tony Wu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2947?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tony Wu updated HARMONY-2947:
-----------------------------

    Attachment:     (was: harmony-2947.diff)

> [classlib][luni]GregorianCalendar.getLeastMaximum(Calendar.WEEK_OF_YEAR) always return 50
> -----------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2947
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2947
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Tony Wu
>         Attachments: harmony-2947.diff
>
>
> GregorianCalendar.getLeastMaximum(Calendar.WEEK_OF_YEAR) always return 50 in Harmony.
> But spec says that it should take into consideration the current values of the getFirstDayOfWeek, getMinimalDaysInFirstWeek, getGregorianChange and getTimeZone methods.
> For example, following testcase fails on Harmony but passes on RI.
> public void test() {
>         Date date = new Date(Date.parse("Jan 1 00:00:01 GMT 2000"));
>         GregorianCalendar gc = new GregorianCalendar();
>         gc.setGregorianChange(date);
>         gc.setMinimalDaysInFirstWeek(7);
>         assertEquals(52, gc.getLeastMaximum(Calendar.WEEK_OF_YEAR));
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (HARMONY-2947) [classlib][luni]GregorianCalendar.getLeastMaximum(Calendar.WEEK_OF_YEAR) always return 50

Posted by "Richard Liang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2947?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard Liang resolved HARMONY-2947.
------------------------------------

    Resolution: Fixed

Hello Tony,

The patch has been applied at revision r501757. Thank you for this enhancement. Please verify this issue is fixed as you expected.

Best regards,
Richard

> [classlib][luni]GregorianCalendar.getLeastMaximum(Calendar.WEEK_OF_YEAR) always return 50
> -----------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2947
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2947
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Tony Wu
>         Assigned To: Richard Liang
>         Attachments: harmony-2947.diff
>
>
> GregorianCalendar.getLeastMaximum(Calendar.WEEK_OF_YEAR) always return 50 in Harmony.
> But spec says that it should take into consideration the current values of the getFirstDayOfWeek, getMinimalDaysInFirstWeek, getGregorianChange and getTimeZone methods.
> For example, following testcase fails on Harmony but passes on RI.
> public void test() {
>         Date date = new Date(Date.parse("Jan 1 00:00:01 GMT 2000"));
>         GregorianCalendar gc = new GregorianCalendar();
>         gc.setGregorianChange(date);
>         gc.setMinimalDaysInFirstWeek(7);
>         assertEquals(52, gc.getLeastMaximum(Calendar.WEEK_OF_YEAR));
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-2947) [classlib][luni]GregorianCalendar.getLeastMaximum(Calendar.WEEK_OF_YEAR) always return 50

Posted by "Tony Wu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2947?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tony Wu updated HARMONY-2947:
-----------------------------

    Description: 
GregorianCalendar.getLeastMaximum(Calendar.WEEK_OF_YEAR) always return 50 in Harmony.
But spec says that it should take into consideration the current values of the getFirstDayOfWeek, getMinimalDaysInFirstWeek, getGregorianChange and getTimeZone methods.

For example, following testcase fails on Harmony but passes on RI.

public void test() {
        Date date = new Date(Date.parse("Jan 1 00:00:01 GMT 2000"));
        GregorianCalendar gc = new GregorianCalendar();
        gc.setGregorianChange(date);
        gc.setMinimalDaysInFirstWeek(7);
        assertEquals(52, gc.getLeastMaximum(Calendar.WEEK_OF_YEAR));
    }


  was:
GregorianCalendar.getLeastMaximum(Calendar.WEEK_OF_YEAR) always return 50 in Harmony.
But spec says that is should take into consideration the current values of the getFirstDayOfWeek, getMinimalDaysInFirstWeek, getGregorianChange and getTimeZone methods.

For example, following testcase fails on Harmony but passes on RI.

public void test() {
        Date date = new Date(Date.parse("Jan 1 00:00:01 GMT 2000"));
        GregorianCalendar gc = new GregorianCalendar();
        gc.setGregorianChange(date);
        gc.setMinimalDaysInFirstWeek(7);
        assertEquals(52, gc.getLeastMaximum(Calendar.WEEK_OF_YEAR));
    }



> [classlib][luni]GregorianCalendar.getLeastMaximum(Calendar.WEEK_OF_YEAR) always return 50
> -----------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2947
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2947
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Tony Wu
>
> GregorianCalendar.getLeastMaximum(Calendar.WEEK_OF_YEAR) always return 50 in Harmony.
> But spec says that it should take into consideration the current values of the getFirstDayOfWeek, getMinimalDaysInFirstWeek, getGregorianChange and getTimeZone methods.
> For example, following testcase fails on Harmony but passes on RI.
> public void test() {
>         Date date = new Date(Date.parse("Jan 1 00:00:01 GMT 2000"));
>         GregorianCalendar gc = new GregorianCalendar();
>         gc.setGregorianChange(date);
>         gc.setMinimalDaysInFirstWeek(7);
>         assertEquals(52, gc.getLeastMaximum(Calendar.WEEK_OF_YEAR));
>     }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-2947) [classlib][luni]GregorianCalendar.getLeastMaximum(Calendar.WEEK_OF_YEAR) always return 50

Posted by "Tony Wu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2947?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tony Wu updated HARMONY-2947:
-----------------------------

    Attachment: harmony-2947.diff

> [classlib][luni]GregorianCalendar.getLeastMaximum(Calendar.WEEK_OF_YEAR) always return 50
> -----------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2947
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2947
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Tony Wu
>         Attachments: harmony-2947.diff
>
>
> GregorianCalendar.getLeastMaximum(Calendar.WEEK_OF_YEAR) always return 50 in Harmony.
> But spec says that it should take into consideration the current values of the getFirstDayOfWeek, getMinimalDaysInFirstWeek, getGregorianChange and getTimeZone methods.
> For example, following testcase fails on Harmony but passes on RI.
> public void test() {
>         Date date = new Date(Date.parse("Jan 1 00:00:01 GMT 2000"));
>         GregorianCalendar gc = new GregorianCalendar();
>         gc.setGregorianChange(date);
>         gc.setMinimalDaysInFirstWeek(7);
>         assertEquals(52, gc.getLeastMaximum(Calendar.WEEK_OF_YEAR));
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (HARMONY-2947) [classlib][luni]GregorianCalendar.getLeastMaximum(Calendar.WEEK_OF_YEAR) always return 50

Posted by "Richard Liang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2947?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard Liang closed HARMONY-2947.
----------------------------------


Verified by Tony.

> [classlib][luni]GregorianCalendar.getLeastMaximum(Calendar.WEEK_OF_YEAR) always return 50
> -----------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2947
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2947
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Tony Wu
>         Assigned To: Richard Liang
>         Attachments: harmony-2947.diff
>
>
> GregorianCalendar.getLeastMaximum(Calendar.WEEK_OF_YEAR) always return 50 in Harmony.
> But spec says that it should take into consideration the current values of the getFirstDayOfWeek, getMinimalDaysInFirstWeek, getGregorianChange and getTimeZone methods.
> For example, following testcase fails on Harmony but passes on RI.
> public void test() {
>         Date date = new Date(Date.parse("Jan 1 00:00:01 GMT 2000"));
>         GregorianCalendar gc = new GregorianCalendar();
>         gc.setGregorianChange(date);
>         gc.setMinimalDaysInFirstWeek(7);
>         assertEquals(52, gc.getLeastMaximum(Calendar.WEEK_OF_YEAR));
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (HARMONY-2947) [classlib][luni]GregorianCalendar.getLeastMaximum(Calendar.WEEK_OF_YEAR) always return 50

Posted by "Richard Liang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2947?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard Liang reassigned HARMONY-2947:
--------------------------------------

    Assignee: Richard Liang

> [classlib][luni]GregorianCalendar.getLeastMaximum(Calendar.WEEK_OF_YEAR) always return 50
> -----------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2947
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2947
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Tony Wu
>         Assigned To: Richard Liang
>         Attachments: harmony-2947.diff
>
>
> GregorianCalendar.getLeastMaximum(Calendar.WEEK_OF_YEAR) always return 50 in Harmony.
> But spec says that it should take into consideration the current values of the getFirstDayOfWeek, getMinimalDaysInFirstWeek, getGregorianChange and getTimeZone methods.
> For example, following testcase fails on Harmony but passes on RI.
> public void test() {
>         Date date = new Date(Date.parse("Jan 1 00:00:01 GMT 2000"));
>         GregorianCalendar gc = new GregorianCalendar();
>         gc.setGregorianChange(date);
>         gc.setMinimalDaysInFirstWeek(7);
>         assertEquals(52, gc.getLeastMaximum(Calendar.WEEK_OF_YEAR));
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.