Summary: | Line ends not reset when setting a different source | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Jerome Lanneluc <jerome_lanneluc> | ||||||
Component: | Core | Assignee: | Jerome Lanneluc <jerome_lanneluc> | ||||||
Status: | VERIFIED FIXED | QA Contact: | |||||||
Severity: | normal | ||||||||
Priority: | P3 | ||||||||
Version: | 3.0 | ||||||||
Target Milestone: | 3.1 M2 | ||||||||
Hardware: | PC | ||||||||
OS: | Windows XP | ||||||||
Whiteboard: | |||||||||
Attachments: |
|
Description
Jerome Lanneluc
2004-09-13 10:55:46 EDT
This is trivial to fix. For the internal scanner, the reset should also be done in the scanner and not in the parser. Created attachment 14531 [details]
Proposed patch
Created attachment 14532 [details]
Regression test
- Changed setSource(char[]) to reset the lineEndPtr. - Added helper method on Scanner (and PublicScanner): setSource(CompilationResult). - Changed all calls that used to set the source from a compilation result to use this helper. - Added regression test InternalScannerTest#test002() Verified for 3.1 M2 with build I200409230010. |