I am trying to instantiate a JRDesignChartDataset
object so that I can pass it in to the constructor of a JRDesignPieDataset
instance like so:
JRDesignPieDataset pieDataset = new JRDesignPieDataset(new JRDesignChartDataset());
This produces a compiler error in Eclipse, complaining that it Cannot instantiate the type JRDesignChartDataset...?!?!
I've made sure that I've imported it from the correct package:
import net.sf.jasperreports.engine.design.JRDesignChartDataset;
And I've checked the current (4.1.3) Javadocs which show this is as a concrete class with a public no-args constructor...
All of the otther JR types that I am importing from the net.sf.jasperreports.engine.design
package are behaving perfectly fine...what am I missing here?
Thanks in advance!