1 <p>Even though the JavaDoc does not contain a hint about it, Calendars are inherently unsafe for multihtreaded use.
2 Sharing a single instance across thread boundaries without proper synchronization will result in erratic behavior of the
3 application. Under 1.4 problems seem to surface less often than under Java 5 where you will probably see
4 random ArrayIndexOutOfBoundsExceptions or IndexOutOfBoundsExceptions in sun.util.calendar.BaseCalendar.getCalendarDateFromFixedDate().</p>
5 <p>You may also experience serialization problems.</p>
6 <p>Using an instance field is recommended.</p>
7 <p>For more information on this see <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6231579">Sun Bug #6231579</a>
8 and <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6178997">Sun Bug #6178997</a>.</p>