Community
Participate
Working Groups
HEAD /* Ceci n'est pas * une ligne. */ package xy; public class Try { } The first item of CompilationUnit#getCommentList() is a LineComment. Expected: BlockComment. Only seems to fail for the very first comment of a CU.
*** Bug 130761 has been marked as a duplicate of this bug. ***
Created attachment 39661 [details] Proposed patch Comments kind are distinguished using comments starting and end position sign. Javadoc comments have both positions positive, line comments have both positions negative and Block comments have positive starting position and negative end position. So, when end position is negative, to know whether the comment is a line or a block, we look at starting position sign. Unfortunately, this does not work when starting position is zero! In this case, we need to look at second char of comment to see if it's a '/' (line comment) or a '*' (block comment)...
Not critical => I will release this patch after 3.2
Candidate for 3.2.1
Released in TARGET_321 stream.
Released for 3.2.1 Released for 3.3 M1 while merging TARGET_321 in HEAD
Verified for 3.3 M1 using build I20060804-0010.
Verified for 3.2.1 using build M20060908-1655.