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 209901 - StringIndexOutOfBoundsException: String index out of range: 5172
Summary: StringIndexOutOfBoundsException: String index out of range: 5172
Status: RESOLVED DUPLICATE of bug 208859
Alias: None
Product: utilities
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-22 00:10 UTC by Vitex
Modified: 2012-03-26 14:21 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 186125


Attachments
stacktrace (1.18 KB, text/plain)
2012-03-22 00:10 UTC, Vitex
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vitex 2012-03-22 00:10:47 UTC
This bug was originally marked as duplicate of bug 193232, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.1.1 (Build 201203012225)
VM: OpenJDK 64-Bit Server VM, 22.0-b10, OpenJDK Runtime Environment, 1.7.0_03-icedtea-b147
OS: Linux

User Comments:
GUEST: Running "Replace in project" to do a find and replace. When pressing the "Find" button, it returned a list of 88 occurences it identified to be replaced. When I pressed "Replace", it then informed me 6 of the files have changed since it did the "Find", even though I hadn't altered anything.

GUEST: Replace of some text found only in xxx.form file.

dwuysan: Global replace tab to four spaces

GUEST: Finad and replace...

GUEST: search and replace in project

GUEST: Localizando e Substituindo em um projeto completo

emiddio: replace in projects




Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: 5172
   at java.lang.AbstractStringBuilder.substring(AbstractStringBuilder.java:870)
   at java.lang.StringBuilder.substring(StringBuilder.java:72)
   at org.netbeans.modules.search.MatchingObject.replace(MatchingObject.java:695)
   at org.netbeans.modules.search.ReplaceTask.doReplace(ReplaceTask.java:176)
   at org.netbeans.modules.search.ReplaceTask.access$000(ReplaceTask.java:68)
   at org.netbeans.modules.search.ReplaceTask$1.run(ReplaceTask.java:122)
Comment 1 Vitex 2012-03-22 00:10:52 UTC
Created attachment 117042 [details]
stacktrace
Comment 2 Jaroslav Havlin 2012-03-26 14:21:52 UTC
Probably duplicate of bug 208859.

*** This bug has been marked as a duplicate of bug 208859 ***