Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354259 - Expecting InvalidIndexException using substring [: operator
Summary: Expecting InvalidIndexException using substring [: operator
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-09 10:28 EDT by Kathy Carroll CLA
Modified: 2017-02-23 14:18 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kathy Carroll CLA 2011-08-09 10:28:14 EDT
egl.lang.EglString says InvalidIndexException should be thrown for:
 
 try
    longStr String = "123456789";	
    shortStr String = longStr[8:12];   		
  onException (oops InvalidIndexException)
     SysLib.writeStdOut("Success");
  onException (oops AnyException)
     SysLib.writeStdOut("wrong exception");
  end
Comment 1 Jeff Douglas CLA 2011-08-09 12:51:21 EDT
fixed
Comment 2 Kathy Carroll CLA 2011-08-10 08:33:30 EDT
verified
Comment 3 Lisa Lasher CLA 2011-10-11 16:05:37 EDT
Closing this defect.