Project: Birt
Bug 223610 Unhandled event loop exception occurs when adding breakpoint on a incorrect script
Reported: 2008-03-24 01:21:10 | Status: closed fixed

Description: Unhandled event loop exception occurs when adding breakpoint on a incorrect script Build number: 2.3.0.v20080324-0800 Steps to reproduce: 1, New a report 2, Input some incorrect script in initialize 3, Try to add a breakpoint Expected result: The breakpoint can be added, or we pops up meaningful error message. Actual result: Unhandled event loop exception occurs Error log: org.mozilla.javascript.EvaluatorException: missing ; before statement (<check>#1) at org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:109) at org.mozilla.javascript.DefaultErrorReporter.error(DefaultErrorReporter.java:96) at org.mozilla.javascript.Parser.addError(Parser.java:140) at org.mozilla.javascript.Parser.reportError(Parser.java:154) at org.mozilla.javascript.Parser.statementHelper(Parser.java:1225) at org.mozilla.javascript.Parser.statement(Parser.java:655) at org.mozilla.javascript.Parser.parse(Parser.java:377) at org.mozilla.javascript.Parser.parse(Parser.java:315) at org.mozilla.javascript.Context.compileImpl(Context.java:2320) at org.mozilla.javascript.Context.compileString(Context.java:1348) at org.mozilla.javascript.Context.compileString(Context.java:1337) at org.eclipse.birt.report.debug.internal.core.vm.js.BreakableSourceChecker.check(JsUtil.java:56) at org.eclipse.birt.report.debug.internal.core.vm.js.JsUtil.checkBreakable(JsUtil.java:31) at org.eclipse.birt.report.debug.internal.script.model.ScriptLineBreakpointAdapter.canToggleLineBreakpoints(ScriptLineBreakpointAdapter.java:65)

Files changed in fix:
UI/org.eclipse.birt.report.debug.core/src/org/eclipse/birt/report/debug/internal/core/vm/js/JsUtil.java