| Summary: | JS: Expecting InvalidIndexException using substring [: operator | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Kathy Carroll <carrollk> |
| Component: | EDT | Assignee: | Project Inbox <edt.javascriptgen-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | greer |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
Ported Java RT implementation of EString.substring; unit-tested with the provided testcase. Verified with 201109120910 Verified with 201109120910 Closing this defect. |
If I remove the onExcpetion block for InvalidIndexException the code will execute. Handler terminates with exception included. try longStr String = "123456789"; shortStr String = longStr[8:12]; onException (oops InvalidIndexException) SysLib.writeStdOut("Success"); onException (oops AnyException) SysLib.writeStdOut("wrong exception"); end Java had this issue as well 354259.