Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318631 - Transformation Java 2 KDM : unmatched transformed elements
Summary: Transformation Java 2 KDM : unmatched transformed elements
Status: CLOSED FIXED
Alias: None
Product: MoDisco
Classification: Modeling
Component: Technologies (show other bugs)
Version: 0.9.0   Edit
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: 0.9.0 M5   Edit
Assignee: Gabriel BARBIER CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-01 12:02 EDT by Fabien Giquel CLA
Modified: 2011-04-28 10:45 EDT (History)
5 users (show)

See Also:
nicolas.bros: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.