SerialDate.getMonths() returns 13 months!

A discussion forum for the JCommon class library.
Post Reply
sjarych
Posts: 1
Joined: Tue Jul 06, 2004 7:57 pm

SerialDate.getMonths() returns 13 months!

Post by 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.

Post Reply