Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360327 - Need validation for callback delegate
Summary: Need validation for callback delegate
Status: CLOSED WORKSFORME
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-10-08 12:40 EDT by Jing Qian CLA
Modified: 2017-02-23 14:17 EST (History)
2 users (show)

See Also:


Attachments

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