Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 313970 - DocumentCharacterIterator#toString() is not implemented
Summary: DocumentCharacterIterator#toString() is not implemented
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: 7.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 7.0.2   Edit
Assignee: Anton Leherbauer CLA
QA Contact: Anton Leherbauer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-21 15:27 EDT by vassili CLA
Modified: 2011-01-20 07:06 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.