<i18n dev> [8]RFR: 6902861: (cal) GregorianCalendar roll WEEK_OF_YEAR is broken for January 1 2010

Yuka Kamiya yuka.kamiya at oracle.com
Tue Oct 1 19:56:53 PDT 2013


The fix looks ok to me.


(2013/09/26 18:33), Masayoshi Okutsu wrote:
> Hi,
> Please view the fix (workaround) for the following bug.
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6902861
> Added a workaround that Calendar.roll tries to stay in the same calendar year even when WEEK_OF_YEAR and YEAR are "out of sync". The real fix should be to add a new method, like rollWeeksInWeekYear(int amount), which handles rolling weeks within a week-based year rather than a calendar year.
> http://cr.openjdk.java.net/~okutsu/8/6902861/webrev.00/
> Thanks,
> Masayoshi

More information about the i18n-dev mailing list