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

Bug 318631

Summary: Transformation Java 2 KDM : unmatched transformed elements
Product: [Modeling] MoDisco Reporter: Fabien Giquel <fabien.giquel>
Component: TechnologiesAssignee: Gabriel BARBIER <barbier.gabriel>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: barbier.gabriel, gdupe, hugo.bruneliere, modisco.web-inbox, nicolas.bros
Version: 0.9.0Flags: nicolas.bros: indigo+
Target Milestone: 0.9.0 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Fabien Giquel CLA 2010-07-01 12:02:55 EDT
When using the transformation "Kdm model from Java model", three kinds of warnings appear in .log generated (it does not prevent from creating the kdm model), caused by unmatched kdm elements for some java elements :

- Cannot set feature codeElement to value [...java.emf.impl.SingleVariableAccessImpl] inter-model references are forbidden
- Cannot set feature codeRelation to value [...java.emf.impl.AnnotationImpl inter-model references are forbidden
- Cannot set feature parameterUnit to value [...java.emf.impl.SingleVariableDeclarationImpl


To reproduce (2 of 3) : checkout "oegm.infra.common.core", and discover kdm model from it.
Comment 1 Gregoire Dupe CLA 2010-10-06 10:04:12 EDT
Moving to P2 because this is not critical.
Comment 2 Gabriel BARBIER CLA 2010-12-28 06:39:27 EST
Correction of "feature parameterUnit to ..." solved in revision 3667.
Comment 3 Gabriel BARBIER CLA 2010-12-28 10:28:19 EST
Correction of "feature codeElement to ..." solved in revision 3668.

However, all element access should be managed in a different to no loose informations. In current implementation, there is a filter on TypeAccess, UnresolvedItemAccess and SingleVariableAccess.
This filter should be removed: a way to transform these access in kdm has to be found.
Comment 4 Gabriel BARBIER CLA 2010-12-28 12:31:59 EST
Correction of "feature codeRelation to ..." solved in revision 3669.

When we will move to version 1.2 of KDM, we should consider a new management of annotations.
Comment 5 Gabriel BARBIER CLA 2010-12-28 12:32:27 EST
Tests for this bug have been committed.
Comment 6 Hugo Bruneliere CLA 2011-01-11 04:54:18 EST
Bug fixed.