Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357394 - RUI Preview catches two exceptions
Summary: RUI Preview catches two exceptions
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: Huo Zhen Zhong CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-12 11:18 EDT by Kathy Carroll CLA
Modified: 2017-02-23 14:14 EST (History)
1 user (show)

See Also:


Attachments
screen shot (17.11 KB, image/jpeg)
2011-09-16 02:21 EDT, Huo Zhen Zhong CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.