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

Bug 320224

Summary: [Java] comments management: invalid resolution
Product: [Modeling] MoDisco Reporter: Gabriel BARBIER <barbier.gabriel>
Component: TechnologiesAssignee: Gabriel BARBIER <barbier.gabriel>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: fabien.giquel, hugo.bruneliere, modisco.web-inbox
Version: 0.9.0Flags: barbier.gabriel: indigo+
Target Milestone: 0.9.0 M2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
To illustrate the bug none

Description Gabriel BARBIER CLA 2010-07-19 04:39:12 EDT
Created attachment 174596 [details]
To illustrate the bug

Hello,

During the discovery of java project, it seems that some comments have not been well managed:

- header comment: it have been linked to the "Package" element that contains current class, so it becomes a common comment for each class in the "Package" element.

- comments of methods: if we have several comments in a method, some of them have been linked to the return type instead of the method.

Regards,
Gabriel
Comment 1 Gabriel BARBIER CLA 2010-07-29 10:47:07 EDT
A correction is available in SVN.

A first step of comments management uses the jdt resolution, and to manage specific cases, a second step for unlocated comments, comments linked to the compilation unit and comments inside types, will be performed using an alternate algorithm.
Comment 2 Hugo Bruneliere CLA 2010-10-05 04:21:22 EDT
Bug fixed.