Hi! This patch does the following: - fixes a bug in getActualMaximum(WEEK_OF_YEAR) (a missing return is added at the end of the case); - replaces floating point arithmetic with an integer one (when computing the difference between Gregorian and Julian calendars).
Changelog entries:
* java/util/GregorianCalendar.java:
(gregOffsetFor(int)): New private static method (integer arithmetic
is used instead of a FP one).
(isGregorian(int, int)): Use gregOffsetFor().
(computeTime()): Likewise.
(getLinearDay(int, int, boolean)): Likewise.
(hashCode()): Optimize the expression.
(getActualMaximum(int)): Fix a bug for WEEK_OF_YEAR case (a missing
return is added replacing a case branch fall-through).
Regards.
classpath-ivmai-20.diff
Description: Binary data
