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.
Build: NetBeans IDE Dev (Build 091008) VM: Java HotSpot(TM) 64-Bit Server VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03 OS: Linux, 2.6.27-14-generic, amd64 User Comments: emononen: Opened jquery-1.2.6.min.js Stacktrace: java.lang.StringIndexOutOfBoundsException: String index out of range: 55774 at java.lang.String.charAt(String.java:687) at org.netbeans.modules.javascript.editing.JsAnalyzer.folds(JsAnalyzer.java:220) at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask.addTree(GsfFoldManager.java:496) at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask.scan(GsfFoldManager.java:492) at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask.access$200(GsfFoldManager.java:299) at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask$1.run(GsfFoldManager.java:395)
Created attachment 89519 [details] stacktrace
Seems to be reliably reproducible with the mentioned file.
Build: NetBeans IDE Dev (Build nbms-and-javadoc-4054-on-091007) VM: Java HotSpot(TM) Client VM, 14.1-b02, Java(TM) Platform, Standard Edition for Business, 1.6.0_15-b03 OS: Windows XP, 5.1, x86 User Comments: Stacktrace: java.lang.StringIndexOutOfBoundsException: String index out of range: 2258 at java.lang.String.charAt(String.java:686) at org.netbeans.modules.javascript.editing.JsAnalyzer.folds(JsAnalyzer.java:220) at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask.addTree(GsfFoldManager.java:496) at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask.scan(GsfFoldManager.java:492) at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask.access$200(GsfFoldManager.java:299) at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask$1.run(GsfFoldManager.java:395)
Created attachment 89540 [details] stacktrace
This issue already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=159902
This issue already has 6 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=159902
Build: NetBeans IDE 6.8 Beta (Build 200910212001) VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01 OS: Windows XP, 5.1, x86 User Comments: Creating a new javascript file with contents... /** * Lists: main */ var Lists = {}; Stacktrace: java.lang.StringIndexOutOfBoundsException: String index out of range: 39 at java.lang.String.charAt(String.java:686) at org.netbeans.modules.javascript.editing.JsAnalyzer.folds(JsAnalyzer.java:220) at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask.addTree(GsfFoldManager.java:496) at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask.scan(GsfFoldManager.java:492) at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask.access$200(GsfFoldManager.java:299) at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask$1.run(GsfFoldManager.java:395)
Created attachment 90025 [details] stacktrace
This issue already has 7 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=159902
This issue already has 9 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=159902
This issue already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=159902
Build: NetBeans IDE Dev (Build 091029) VM: Java HotSpot(TM) 64-Bit Server VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01 OS: Linux, 2.6.28-16-generic, amd64 User Comments: opened jquery file Stacktrace: java.lang.StringIndexOutOfBoundsException: String index out of range: 57254 at java.lang.String.charAt(String.java:686) at org.netbeans.modules.javascript.editing.JsAnalyzer.folds(JsAnalyzer.java:220) at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask.addTree(GsfFoldManager.java:496) at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask.scan(GsfFoldManager.java:492) at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask.access$200(GsfFoldManager.java:299) at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask$1.run(GsfFoldManager.java:395)
Created attachment 90225 [details] stacktrace
Fixed in web-main
Integrated into 'main-golden', will be available in build *200911160201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/df7a6e376b41 User: Petr Pisl <ppisl@netbeans.org> Log: issue #174634 - StringIndexOutOfBoundsException: String index out of range: 55774