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

Bug 369059

Summary: getBusinessObjectClass() should return EClass instead of Class
Product: [SOA] BPMN2Modeler Reporter: Randeep Singh <rand.singh>
Component: CoreAssignee: Randeep Singh <rand.singh>
Status: CLOSED INVALID QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: 0.0.1-M1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Randeep Singh CLA 2012-01-19 06:43:15 EST
Build Identifier: version : 0.0.1.201107190928

HI,

I have a class which extends "org.eclipse.bpmn2.modeler.core.features.AbstractBpmn2CreateFeature" and have some concern regarding the return type of getBusinessObjectClass() method which is Class, shouldn't it be EClass.Please correct me if i am wrong but i think even in your implementation you intent is  to return the EClass. or there is any other reason of returning the  raw type.I have an Eclass which i would like to return from this method.

Best Regards
Randeep Singh.

Reproducible: Always
Comment 1 Robert Brodt CLA 2012-03-01 10:29:16 EST
I'm not exactly sure of the reason why this method returns the raw class, but it seems like an unnecessary change that will affect a LOT of classes. Is there a reason why your subclass needs to provide the EClass at runtime instead of compile time?