wrong sequence of categories in JdbcCategoryDataset
Posted: 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
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