Bug 53276

Summary: [DOM Comments] Wrong text element length when containing '\' character
Product: [Eclipse Project] JDT Reporter: Frederic Fusier <frederic_fusier>
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 2000   
Whiteboard:

Description Frederic Fusier CLA 2004-02-27 09:01:56 EST
In following examples length of text element fragments is not correct
/**
 * Text element which includes a backslash '\' character,
 * or also when ending with \
 */
public class X {
}
Comment 1 Frederic Fusier CLA 2004-03-01 17:00:34 EST
Fixed.

Now text fragments including '\' character has correct length.

[jdt-core-internal]
Modify readChar() of AbstractCommentParser class to consume only one character 
when '\' is not followed by a valid unicode value.

Regression tests added in jdt.core.tests.dom.ASTConverterJavadocTest
Comment 2 Jerome Lanneluc CLA 2004-03-25 12:00:25 EST
Verified in I200403250800.