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

Bug 349496

Summary: genmodel does not validate due to lower bound of 1 for AnonymousClass.classInstanceCreation
Product: [Modeling] MoDisco Reporter: Hallvard Traetteberg <hal>
Component: MainAssignee: Fabien Giquel <fabien.giquel>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P2 CC: fabien.giquel, gdupe, hugo.bruneliere, modisco.web-inbox
Version: 0.9.0   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Hallvard Traetteberg CLA 2011-06-15 15:40:58 EDT
I'm trying to refer to Modisco's Java model, hence, my genmodel refers to this model's genmodel. The latter will not validate:
A containment reference of a type with at container feature of AnonymousClassDeclaration.classInstanceCreation that requires instances to be created elsewhere cannot be populated.

Ed Merks says this is due to a lower bound of 1 for a container feature, when there are more than one possible container. Although I can ignore the validation error (when (re)loading it), it is annoying.

Hallvard
Comment 1 Fabien Giquel CLA 2011-06-16 03:26:48 EDT
Hi Hallvard,

i mark this bug as duplicate of 319265 which was resolved in Indigo release. Just to make sure, can you check that you are referencing an older version (0.8.x version) of org.eclipse.gmt.modisco.java plugin ?

*** This bug has been marked as a duplicate of bug 319265 ***
Comment 2 Hallvard Traetteberg CLA 2011-06-16 03:35:04 EDT
(In reply to comment #1)
> Hi Hallvard,
> 
> i mark this bug as duplicate of 319265 which was resolved in Indigo release.
> Just to make sure, can you check that you are referencing an older version
> (0.8.x version) of org.eclipse.gmt.modisco.java plugin ?
> 
> *** This bug has been marked as a duplicate of bug 319265 ***

You are right! I thought I had the latest version, but I have version 0.8.2. I should have checked and reported more properly.
Comment 3 Hugo Bruneliere CLA 2011-08-18 08:35:27 EDT
Duplicate bug solved.