This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 145151 - StringIndexOutOfBoundsException: String index out of range: 3159
Summary: StringIndexOutOfBoundsException: String index out of range: 3159
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Torbjorn Norbye
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-26 14:25 UTC by Erno Mononen
Modified: 2008-08-26 22:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 19463


Attachments
stacktrace (1.55 KB, text/plain)
2008-08-26 14:25 UTC, Erno Mononen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erno Mononen 2008-08-26 14:25:11 UTC
Build: NetBeans IDE Dev (Build 080826)
VM: Java HotSpot(TM) 64-Bit Server VM, 1.5.0_15-b04, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_15-b04
OS: Linux, 2.6.24-19-generic, amd64

User Comments: 
Find usages, searched for subclasses

Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: 3159
        at java.lang.String.substring(String.java:1765)
        at java.lang.String.subSequence(String.java:1803)
        at org.netbeans.modules.refactoring.ruby.WhereUsedElement.create(WhereUsedElement.java:187)
        at org.netbeans.modules.refactoring.ruby.WhereUsedElement.create(WhereUsedElement.java:130)
        at org.netbeans.modules.refactoring.ruby.plugins.RubyWhereUsedQueryPlugin$FindTask.run(RubyWhereUsedQueryPlugin.java:436)
        at org.netbeans.modules.refactoring.ruby.plugins.RubyWhereUsedQueryPlugin$FindTask.run(RubyWhereUsedQueryPlugin.java:334)
Comment 1 Erno Mononen 2008-08-26 14:25:22 UTC
Created attachment 68340 [details]
stacktrace
Comment 2 Erno Mononen 2008-08-26 14:29:33 UTC
This is 100% reproducible for me in the ruby-debug project -- searching all subtypes of any class result in this error.
Comment 3 Torbjorn Norbye 2008-08-26 22:02:35 UTC
Fixed in changeset 7332ef6c81ed.