commit-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[commit-cp] [bugs #11224] GregorianCalendar.computeTime - month out of r


From: Sven de Marothy
Subject: [commit-cp] [bugs #11224] GregorianCalendar.computeTime - month out of range
Date: Thu, 13 Jan 2005 22:43:54 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040922

This is an automated notification sent by Savannah.
It relates to:
                bugs #11224, project classpath

==============================================================================
 LATEST MODIFICATIONS of bugs #11224:
==============================================================================

               Posted by: Sven de Marothy <smarothy>
               Posted on: 2005-01-13 22:43 (Europe/Stockholm)
    _______________________________________________________

             Assigned to:                    None -> smarothy               

    _______________________________________________________

Follow-up Comment:
The line causing your problem is:

 date.set(0,0,0); 



Note that the default calendar is the Gregorian one, which does not have a
year zero (1 AD was the year after 1 BC). 



The date created by the JDK by date.set(0,0,0) is Dec 31, year 2; which is
clearly a bug. 



The IllegalArgumentException is correct behavior, however the error message
is misleading. That should be fixed.

==============================================================================
 OVERVIEW of bugs #11224:
==============================================================================

URL:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11224>

                 Summary: GregorianCalendar.computeTime - month out of range
                 Project: classpath
            Submitted by: None
            Submitted on: Mon 12/06/2004 at 03:31
                Category: classpath
                Severity: 5 - Average
                  Status: None
                 Privacy: Public
             Assigned to: smarothy
             Open/Closed: Open
        Platform Version: None

    _______________________________________________________


Here's the original stack traces from running Apache Axis' tests using IKVM:

http://nagoya.apache.org/~dims/ikvm-report/test/encoding/PackageTests.html



See attached Test.java for stripped down test case.



Thanks,

dims

    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Thu 01/13/2005 at 22:43       By: Sven de Marothy <smarothy>
The line causing your problem is:

 date.set(0,0,0); 



Note that the default calendar is the Gregorian one, which does not have a
year zero (1 AD was the year after 1 BC). 



The date created by the JDK by date.set(0,0,0) is Dec 31, year 2; which is
clearly a bug. 



The IllegalArgumentException is correct behavior, however the error message
is misleading. That should be fixed.







    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mon 12/06/2004 at 03:31  Name: Test.java  Size: 2.68KB   By: None
Stripped down test case for 3 of the 5 failures in Apache Axis
<http://savannah.gnu.org/bugs/download.php?item_id=11224&item_file_id=1948>

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

This item URL is:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11224>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]