Community
Participate
Working Groups
Build Identifier: 20100617-1415 when starting modisco on a sample project, I realised that comments are not ported from javamodel to kdmmodel. in the different classes i added different comments (javadoc, blockcomment, linecomment) I am not able to find the comments in the kdm model. in the atl script used I find rules for creating elements for comments. see also forum: http://www.eclipse.org/forums/index.php?t=rview&goto=629420#msg_629420If Reproducible: Always Steps to Reproduce: 1. import src2 project into workspace 2. right click the project and start "modisco > discover kdm code model from java project 3. view "Src2.javaxmi" and "Src2.kdm" 4. compare "<ownedElements xsi:type="java:ClassDeclaration" originalCompilationUnit="//@compilationUnits.1" name="Component2_Test1"> <comments xsi:type="java:BlockComment" originalCompilationUnit="//@compilationUnits.1" content="/*
 * Test Comment 1
 */" prefixOfParent="true"/>" from the javaxmi with .kdm the block comment can not be found.
Created attachment 179888 [details] The example project with the java files and the comments as well as the generated models it is a helios eclipse project... created with eclipse modeling + modisco
Hi Bjorn, a fix of Java2kdm transformation, for translating comments, has just been commited into SVN. It will be available in next MoDisco nightly build. There are still particular cases where comments are not translated, but in most cases it will do the job. Fabien.
Bug fixed.