| Summary: | RUI Preview catches two exceptions | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Kathy Carroll <carrollk> | ||||
| Component: | EDT | Assignee: | Huo Zhen Zhong <huozz> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | chenzhh | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Created attachment 203470 [details]
screen shot
Hi, Kathy I think it is all right in the latest build, please see the screen shot. verified with 201109191052 Closing this defect. |
The RUI Preview pane catches two exceptions. Java and runtime JS only catch InvalidIndexException. import org.eclipse.edt.rui.widgets.Box; import org.eclipse.edt.rui.widgets.TextLabel; // // handler verify type RUIhandler {initialUI = [ visual, ui ],onConstructionFunction = start, cssFile="css/Verify354764.css", title="verify"} visual TextLabel{ text="Verify 354764" }; ui Box{ children = [] }; function start() syslib.writestdout("running my code"); verify354764(); syslib.writestdout("done running my code"); end function verify354764() try longStr String = "123456789"; shortStr String = longStr[8:12]; onException (oops InvalidIndexException) SysLib.writeStdOut(" Success with exception"); onException (oops AnyException) SysLib.writeStdOut(" wrong exception " + oops.message); end end end