To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=68819





------- Additional comments from [EMAIL PROTECTED] Tue Oct 24 11:12:01 -0700 
2006 -------
khong->cn, I made wrong assumption of the test case _isValid(). 

The calendar is loaded, it is Arabic hijri calendar in this case.

The problem is the case set MONTH to 37 first, which makes the calendar invalid.
During calculation for hijri calendar, other fields, like day, year, are also
re-calculated, and may contain invalid values, just resetting MONTH to 10 in
next statement may not make the calendar valid.

The calendar should be recovered between two test statements.

    public void _isValid() {
        boolean res = true;

        oObj.setValue(CalendarFieldIndex.MONTH, (short) 37);
        res &= !oObj.isValid();
 new=>  oObj.setDateTime(aOriginalDTime);
        oObj.setValue(CalendarFieldIndex.MONTH, (short) 10);
        res &= oObj.isValid();

        tRes.tested("isValid()", res);
    }


---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to