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

Bug 193174

Summary: Folding logic throws StringIndexOutOfBoundsException
Product: [Technology] DLTK Reporter: Mark Howe <mark.howe>
Component: RubyAssignee: dltk.ruby-inbox <dltk.ruby-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.9   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Mark Howe CLA 2007-06-18 14:46:01 EDT
Steps:
Open ActionController::Base (../action_controller/base.rb)

You get the following exception. 

java.lang.StringIndexOutOfBoundsException: String index out of range: 56581
	at java.lang.String.substring(String.java:1765)
	at org.eclipse.dltk.ui.text.folding.AbstractASTFoldingStructureProvider.computeFoldingStructure(AbstractASTFoldingStructureProvider.java:767)
	at org.eclipse.dltk.ui.text.folding.AbstractASTFoldingStructureProvider.computeFoldingStructure(AbstractASTFoldingStructureProvider.java:710)
	at org.eclipse.dltk.ui.text.folding.AbstractASTFoldingStructureProvider.update(AbstractASTFoldingStructureProvider.java:651)
....
Comment 1 Andrei Sobolev CLA 2007-06-19 04:46:14 EDT
fixed
Comment 2 Andrey Platov CLA 2008-05-26 02:43:41 EDT
bulk change: this bug was fixed in DLTK 0.9