Bug 53276 - [DOM Comments] Wrong text element length when containing '\' character
Summary: [DOM Comments] Wrong text element length when containing '\' character
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M8   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-27 09:01 EST by Frederic Fusier CLA
Modified: 2004-03-25 12: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 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.