I' creating a report which uses javabean collection datasource with DTO objects contains other DTO objects. This DTOs are defined in a Netbeans project and imported into workspace as External class folder.
When I change the DTO class (in Netbeans -> Clean&Build on project) and use Refresh (F5) on workspace in Jasper Studio, report is unable to compile because of this exception:
net.sf.jasperreports.engine.JRException: net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression :
Caused by: java.lang.ClassCastException: com.x.y.MyDto cannot be cast to com.x.y.MyDto
I think there is problem with the class versioning - jasper holds old version of MyDto class and tries to cast it to the new version.
Report compiles without problems after restarting Studio. This is annoying, because I'm creating the DTO together with a bigger report and I have to restart Studio very frequently.