SerialDate.getMonths() returns 13 months!

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
bigzero2201
Posts: 1
Joined: Sun Jul 07, 2019 4:16 am
antibot: No, of course not.

SerialDate.getMonths() returns 13 months!

Post by bigzero2201 » Sun Aug 04, 2019 8:45 am

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.

Locked