Community
Participate
Working Groups
20040314 In the folloing code, get the extended range of the method invocation: The comment mapper only adds the second comment to it, not the first. public class TestFieldInitializer1 { private int field= /*]*/foo()/*[*/; public int foo() { return 1; } }
Fixed. Now method invocation extended range include leading comment. Problem was coming from the fact that we removed leading comments on same line of previous node. By-pass this test when previous node and first leading comment is on the same line as old comment mapper did. [jdt-core-internal] Changes done in storeLeadingComments method of DefaultCommentMapper. Test case added in jdt.core.tests.dom.ASTConverterjavadocTests
Verified in build I200403250800