classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] GregorianCalendar


From: Sven de Marothy
Subject: [cp-patches] GregorianCalendar
Date: Fri, 21 Jan 2005 18:01:53 +0100

Hi,
This fixes a number of issues with GregorianCalendar (and some related
classes)
Leniency works better, and non-lenint settings throw exceptions in more
places where they're supposed to.
Correct date and days of week for everything I've thrown at it so far,
including BC dates and the julian-gregorian cutover.

In Calendar:
Setting years should invalidate the ERA field.

In GregorianCalendar:
The getLinearTime() method was thrown out, as it was rather confusing
with the similar getLinearDay(), and not very neccesary.
computeTime() was largely re-worked. isLeapYear(int, boolean) was thrown
out, as redundant. The two commented-out methods were thrown out. And a
bunch of changes all around.

In SimpleTimeZone:
getDaysOfMonth() was simplified and fixed for julian years.

Attachment: GCfix.patch
Description: Text Data


reply via email to

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