Page 1 of 1

wrong sequence of categories in JdbcCategoryDataset

Posted: Wed Jul 17, 2002 11:52 am
by Gero Klinkmann
Hi,

I think, I found a bug in your Implementation of the class JdbcCategoryDataset. I wondered, how I get a wrong sequence of categories in my chart. After a look into the source, I guess I found a reason for that.

In my opinion you cannot use a HashMap to store the categoryNames,
because this class makes no guarantees as to the order of the map
, in particular, it does not guarantee that the order will remain constant over time.

Gero Klinkmann

Re: wrong sequence of categories in JdbcCategoryDataset

Posted: Tue Aug 06, 2002 4:45 am
by Milo Simpson
Yeah, I ran across that too. I submitted a bug on the sf site, and attached my 'patched' file.

Milo S.