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

Bug 329672

Summary: Java Generation : misplaced comments location at the end of a block
Product: [Modeling] MoDisco Reporter: Fabien Giquel <fabien.giquel>
Component: TechnologiesAssignee: Fabien Giquel <fabien.giquel>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: hugo.bruneliere, modisco.web-inbox
Version: 0.9.0Flags: fabien.giquel: indigo+
Target Milestone: 0.9.0 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Fabien Giquel CLA 2010-11-08 08:53:47 EST
Discovering this part of code, and generating java code from java model, leads up to to a misplaced comment : comment is generated at the begining of the block instead of the end.

    public static void main(String[] args) {
        int i = 1;

        /* a comment */
        }
Comment 1 Fabien Giquel CLA 2010-11-08 13:53:29 EST
A fix has been commited into SVN (revision 3586) and associated JUnit test.
Comment 2 Hugo Bruneliere CLA 2011-01-11 05:18:03 EST
Bug fixed.