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

Bug 360327

Summary: Need validation for callback delegate
Product: z_Archived Reporter: Jing Qian <jqian>
Component: EDTAssignee: Project Inbox <edt.javagen-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: jeffdouglas, pharmon
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Jing Qian CLA 2011-10-08 12:40:49 EDT
if you have a service call back function, or exception callback, the function must be defined inside the part(library or handlers).

validation tells you that. 

but you can still define a delegate which points to functions defined outside of the part
This does not work at runtime.

Joe want me to open this defect for validation.

please add validation as well for the delegate that equals to functions outside of the part.   (if you could detect it at validation time)
Comment 1 Paul Harmon CLA 2011-11-07 14:10:58 EST
I am routing this to JavaGen (really should be Java runtime, but there is no component for that).

There is really nothing that validation can do, since i cannot check the runtime value of the variable. I am hoping that runtime can produce a helpful message for this
Comment 2 Jeff Douglas CLA 2011-11-14 14:49:51 EST
I have created a testcase that invokes a function outside of the program, as a delegate and it seems to work. I'm resolving this as works for me. If you still don't think it works, please provide a testcase.
Comment 3 Lisa Lasher CLA 2012-01-13 14:26:11 EST
closing defect