SerialDate.getMonths() returns 13 months!

A discussion forum for the JCommon class library.

SerialDate.getMonths() returns 13 months!

Postby sjarych » Tue Jul 06, 2004 8:08 pm

This is visible using org.jfree.ui.DateChooserPanel -- you will see an empty month after December.

SerialDate.getMonths() relies on java.text.DateFormatSymbols.getMonths() which is the culprit that returns 13 months, but according to the Javadoc, Sun says not to use that class directly.

In DateChooserPanel, if you repeatedly select the 'empty' month and call getDate(), you will get varying results.
Posts: 1
Joined: Tue Jul 06, 2004 7:57 pm

Return to JCommon

Who is online

Users browsing this forum: No registered users and 1 guest