wrong sequence of categories in JdbcCategoryDataset

A discussion forum for the JCommon class library.
Locked
Gero Klinkmann

wrong sequence of categories in JdbcCategoryDataset

Post by Gero Klinkmann » Wed Jul 17, 2002 11:52 am

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

Milo Simpson

Re: wrong sequence of categories in JdbcCategoryDataset

Post by Milo Simpson » Tue Aug 06, 2002 4:45 am

Yeah, I ran across that too. I submitted a bug on the sf site, and attached my 'patched' file.

Milo S.

Locked