Exception running EventFrequencyDemo

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Eduardo Ramalho

Exception running EventFrequencyDemo

Post by Eduardo Ramalho » Fri Feb 07, 2003 7:40 pm

Hi!

I tried running the following demo but it fails with a exception.

java -classpath lib/jcommon-0.7.2.jar;jfreechart-0.9.5.jar;jfreechart-0.9.5-demo.jar com.jrefinery.chart.demo.EventFrequencyDemo

Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: -1, Size: 4
at java.util.ArrayList.RangeCheck(ArrayList.java:508)

All others demos are working just fine.

Eduardo

David Gilbert

Re: Exception running EventFrequencyDemo

Post by David Gilbert » Tue Feb 11, 2003 11:22 am

Hi Eduardo,

Thanks for the report. This is in the bug database (id 684471), and should get fixed for 0.9.6.

Regards,

Dave Gilbert

Eduardo Ramalho

Re: Exception running EventFrequencyDemo

Post by Eduardo Ramalho » Tue Feb 11, 2003 12:37 pm

Hi David!

I just realise that there was a bug database in SourceForge.
In the future should I "submit new" there and not where, rigth?

Eduardo

David Gilbert

Re: Exception running EventFrequencyDemo

Post by David Gilbert » Tue Feb 11, 2003 2:57 pm

The most important thing is that the bugs are reported. It helps if you put them into the bug database, but it isn't essential.

I have found the bug, it is a problem in the getValue(...) method of the DefaultKeyedValues class. The fix is going into CVS shortly, ready for 0.9.6 (which I will release this week or next week).

Regards,

Dave Gilbert

Locked