Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 259478 - creating executable extensions not possible via element definitions when using extension interfaces
Summary: creating executable extensions not possible via element definitions when usin...
Status: RESOLVED FIXED
Alias: None
Product: Riena
Classification: RT
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-22 05:51 EST by Holger Hoch CLA
Modified: 2009-01-15 17:39 EST (History)
1 user (show)

See Also:


Attachments
patch for InterfaceBeanHandler (969 bytes, patch)
2008-12-22 05:52 EST, Holger Hoch CLA
christian.campo: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Holger Hoch CLA 2008-12-22 05:51:03 EST
Build ID: xxx

Steps To Reproduce:
1. implement class XXX implementing o.e.c.r.IExecutableExtension
2. define extension 
   <thing name="aThing">
     <implementation class="XXX">
        <parameter name="eins" value="1"/>            
        <parameter name="zwei" value="2"/>            
     </implementation>
   </thing>
3. define Extension Interface
   @ExtensionInterface
   interface ThingExtension {
      XXX createImplementation();
   }

result: no instance for class XXX would be created when calling createImplementation()


More information:
The reason is a bug in o.e.r.c.e.InterfaceBeanHandler - for an executable extension null is returned if not defined using an attribute
Comment 1 Holger Hoch CLA 2008-12-22 05:52:16 EST
Created attachment 121054 [details]
patch for InterfaceBeanHandler
Comment 2 Stefan Liebig CLA 2009-01-06 06:00:09 EST
Thanks for the patch!