Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 313970

Summary: DocumentCharacterIterator#toString() is not implemented
Product: [Tools] CDT Reporter: vassili
Component: cdt-editorAssignee: Anton Leherbauer <aleherb+eclipse>
Status: RESOLVED FIXED QA Contact: Anton Leherbauer <aleherb+eclipse>
Severity: normal    
Priority: P3 CC: aleherb+eclipse, cdtdoug
Version: 7.0   
Target Milestone: 7.0.2   
Hardware: All   
OS: All   
Whiteboard:

Description vassili CLA 2010-05-21 15:27:40 EDT
Build Identifier: I20100429-1549

DocumentCharacterIterator implements the CharSequence interface. CharSequence#toString()'s javadoc requires that it "Returns a string with the same characters in the same order as in this sequence". DocumentCharacterIterator does not implement toString() and instead inherits the one from Object, which returns something like "DocumentCharacterIterator@12341234".

Reproducible: Always

Steps to Reproduce:
aDocumentChararterIterator.toString() should return a string with a portion of the document's content. It doesn't.
Comment 1 Anton Leherbauer CLA 2011-01-20 05:30:49 EST
Will be fixed together with bug 334805.
Comment 2 Anton Leherbauer CLA 2011-01-20 07:06:03 EST
Fixed in HEAD and cdt_7_0.