Bug 55223

Summary: Bug in comment mapper: Same comment mapped to 2 statements
Product: [Eclipse Project] JDT Reporter: Martin Aeschlimann <martinae>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.0 M8   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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.