Community
Participate
Working Groups
Using latest JDT/Core code, the end positions for a line comment is located between the \r and the \n. The DOM positions are ok, but I think the length for a DOM block comment is one caracter too far.
Fixed. Now line comments include trailing '\r' and/or '\n'. This was an unnecessary change while fixing bug 51104. Put back previous behavior to avoid side effects in M7... [jdt-core-dev internal] Change back in getNextToken() and jumpOverMethodBody() methods in Scanner: recordComment(boolean) is called after having consumed '\r' and eventually '\r' characters. Also put back previous recordComments which was not working for unicode characters. Test case added in jdt.core.tests.dom.ASTConverterJavadocTest. Need to be completed with specific tests with unicode characters...
Verfified for 3.0M7