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

Bug 131343

Summary: Duplicate method getPackage generated in type FactoryImpl
Product: [Modeling] EMF Reporter: Gunnar Wagenknecht <gunnar>
Component: MappingAssignee: Marcelo Paternostro <marcelop>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: Ed.Merks
Version: 2.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 75933    
Attachments:
Description Flags
ecore model
none
genmodel none

Description Gunnar Wagenknecht CLA 2006-03-10 11:22:08 EST
2.2.0 M5

I just created a simple model and a genmodel and generated the source. There are 3 compile errors.

FactoryImpl.java
Duplicate method getPackage() in type FactoryImpl
line 114

FactoryImpl.java
Duplicate method getPackage() in type FactoryImpl
line 124

FactoryImpl.java
The type FactoryImpl must implement the inherited abstract method Factory.getPackage()
line 25

I'll attach the model.
Comment 1 Gunnar Wagenknecht CLA 2006-03-10 11:22:51 EST
Created attachment 36061 [details]
ecore model
Comment 2 Gunnar Wagenknecht CLA 2006-03-10 11:23:18 EST
Created attachment 36062 [details]
genmodel
Comment 3 Ed Merks CLA 2006-03-10 12:19:21 EST
You must define a package prefix; the null string will not do:

<genPackages prefix="" basePackage="org.eclipse.ric" disposableProviderFactory="true"

*** This bug has been marked as a duplicate of 104727 ***
Comment 4 Dave Steinberg CLA 2006-05-17 15:01:35 EDT
This could be handled as an GenModel constraint: GenPackage.prefix must be non-null.
Comment 5 Dave Steinberg CLA 2006-05-17 15:03:56 EDT

*** This bug has been marked as a duplicate of 75933 ***