Project: Birt
Bug 213796 Script validation shows wrong message
Reported: 2007-12-23 22:39:52 | Status: resolved fixed

The script validation shows that a segment of script is illegal while it is right actually. Build number: 2.3.0.v20071217-0800 Steps to reproduce: 1. New a data source"d3", select "Script Data Source", click on "finish". 2. New a data set "ds3". 3.In the wizard,creat three output columns: name: Num type: interge name: Square type: float name: Str type: string Click "Finish" 4.choose the "ds3" and go to script page, enter " in "open" method input "count=11;" 5. In "fetch" method input: "if (count==0) return false; else { row["Num"]=count; row["Square"]=count*count; row["Str"]="row#" + count; --count; return true; }" 6. press the button "validatate script " Expected result: the script passes the script validation Actual result: the script cann't pass the script validation but the preview results in the edit set are right

Files changed in fix:
UI/org.eclipse.birt.report.designer.ui.editor.script/src/org/eclipse/birt/report/designer/ui/editor/script/ScriptReconcilingStrategy.java UI/org.eclipse.birt.report.designer.ui.editors.schematic/src/org/eclipse/birt/report/designer/internal/ui/editors/script/JSEditor.java UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ExpressionBuilder.java