Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354048 - Java Compile error: InvalidIndexException cannot be resolved to a type
Summary: Java Compile error: InvalidIndexException cannot be resolved to a type
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-05 15:07 EDT by Kathy Carroll CLA
Modified: 2017-02-23 14:16 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-05 15:07:41 EDT
EGL code:

library mine  {}
	function tester()
		try
   			longStr String = "123456789";	
  	  		shortStr String = longStr[8:12];   		
  			SysLib.writeStdOut("this is bad");
  		onException (oops InvalidIndexException)
			SysLib.writeStdOut("this is good");
		end
	end		
end

Java error: 
    InvalidIndexException cannot be resolved to a type

Java code:
  catch (InvalidIndexException oops) {

JavaScript generates and compiles without error
Comment 1 Jeff Douglas CLA 2011-08-05 15:46:05 EDT
Added the defined exceptions
Comment 2 Kathy Carroll CLA 2011-08-12 10:04:17 EDT
Verified
Comment 3 Lisa Lasher CLA 2011-10-11 16:04:35 EDT
Closing this defect.