Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 354259

Summary: Expecting InvalidIndexException using substring [: operator
Product: z_Archived Reporter: Kathy Carroll <carrollk>
Component: EDTAssignee: Project Inbox <edt.javagen-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jeffdouglas
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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.