Bug 55223 - Bug in comment mapper: Same comment mapped to 2 statements
Summary: Bug in comment mapper: Same comment mapped to 2 statements
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M8   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-18 10:01 EST by Martin Aeschlimann CLA
Modified: 2004-03-25 13:00 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Aeschlimann CLA 2004-03-18 10:01:33 EST
20040318

In the following code, the comments /* a */ and /* b */ belong to 2 statements.
/* a */ should bind to the first foo(), and /* b */ to the second. 
class A {
	private void foo() {
		foo();/* a */ foo(); /* b */ foo();
	}
}
Comment 1 Frederic Fusier CLA 2004-03-21 15:08:28 EST
Fixed.

Comments now belong to only one statement: first foo() for /* a */ and second 
for /* b */.

[jdt-core-internal]
Changes done in DefaultCommentMapper.

Test cases added in jdt.core.tests.dom.ASTConverterJavadocTest.
Comment 2 Jerome Lanneluc CLA 2004-03-25 13:00:05 EST
Verified in build I200403250800.