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

Bug 357394

Summary: RUI Preview catches two exceptions
Product: z_Archived Reporter: Kathy Carroll <carrollk>
Component: EDTAssignee: 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:
Description Flags
screen shot none

Description Kathy Carroll CLA 2011-09-12 11:18:55 EDT
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
Comment 1 Huo Zhen Zhong CLA 2011-09-16 02:21:30 EDT
Created attachment 203470 [details]
screen shot
Comment 2 Huo Zhen Zhong CLA 2011-09-16 02:22:50 EDT
Hi, Kathy
I think it is all right in the latest build, please see the screen shot.
Comment 3 Kathy Carroll CLA 2011-09-19 15:36:45 EDT
verified with 201109191052
Comment 4 Lisa Lasher CLA 2011-10-11 16:27:56 EDT
Closing this defect.