JDK-4458665 : BuddhistCalendar shouldn't be a GregorianCalendar subclass
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • OS: generic
  • CPU: generic
  • Submitted: 2001-05-15
  • Updated: 2001-12-10
  • Resolved: 2001-12-10
Related Reports
Relates :  
Description
In Merlin beta, the calendar system for the Thai locale is implemented as a GregorianCalendar subclass, sun.util.BuddhistCalendar. However, BuddhistCalendar doesn't maintain the semantic of Gregorian years and it's very likely to break existing applications which rely on such Gregorian calendar semantic. In addition, since BuddhistCalendar is a Sun private class, applications can't distinguish it from a real GregorianCalendar instance.

Comments
EVALUATION Committed for beta2. masayoshi.okutsu@Eng 2001-05-15 The Calendar class API specifies that Calendar's getInstance method returns a GregorianCalendar object. High risk of breaking compatibility if we change the BuddhistCalendar to a direct Calendar subclass. Closing as "will not fix". masayoshi.okutsu@Eng 2001-06-01 We consider the Calendar API problem above was a doc bug and fixed. I'm reopening this bug. masayoshi.okutsu@Eng 2001-07-04 The current implementation will be shipped with Merlin. I'm closing this as "will not fix." ###@###.### 2001-12-10
04-07-2001