Project: Birt
Bug 229436 Debugging a Java Chart Event Handler fails
Reported: 2008-04-29 14:48:49 | Status: resolved fixed

When trying to debug a report that contain a Java chart event hanlder that accesses the report context, the debug session fails. For example entering code similar to the following: import org.eclipse.birt.report.engine.api.script.IReportContext; Object lc = ((IReportContext)(icsc.getExternalContext().getObject())).getParameterValue("lowContact"); will run correctly, but debugging fails with the following error: Caused by: java.lang.ClassCastException: org.eclipse.birt.report.engine.script.internal.ReportContextImpl cannot be cast to org.eclipse.birt.report.engine.api.script.IReportContext

Files changed in fix:
chart/org.eclipse.birt.chart.reportitem/src/org/eclipse/birt/chart/reportitem/BIRTScriptClassLoader.java