Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357001 - Cast in exception handler not working
Summary: Cast in exception handler not working
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-07 15:49 EDT by Justin Spadea CLA
Modified: 2017-02-23 14:15 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 Justin Spadea CLA 2011-09-07 15:49:01 EDT
Try to run the following, get a big stack trace in the browser on the print statement. If you look in firebug, the value of 'sie' is undefined.

package pkg;

handler castDefect type RUIhandler {initialUI = [],onConstructionFunction = start}
	
	function start()
		svc iDontExist?{@DedicatedService {}};
		call svc.func() returning to foo onException ex;
	end
	
	function foo()
	end
	
	function ex(exp AnyException in)
		sie ServiceInvocationException = exp;
		syslib.writeStdout(sie.detail3);
	end
end

interface iDontExist
	function func();
end
Comment 1 Scott Greer CLA 2011-09-26 23:01:29 EDT
This was caused by the fact that some of our RT exceptions are in fact generated, and JS gen did not support the Exception stereotype.   I've fixed that, and re-generated the exceptions that were affected, including the one in the testcase supplied.
Comment 2 Scott Greer CLA 2011-09-26 23:01:46 EDT
Fixed
Comment 3 Justin Spadea CLA 2011-11-04 14:14:06 EDT
Verified