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 238003 - StringIndexOutOfBoundsException: String index out of range: -1
Summary: StringIndexOutOfBoundsException: String index out of range: -1
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 8.0
Hardware: All All
: P1 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-05 14:32 UTC by Jiri Prox
Modified: 2013-12-04 15:31 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 205043


Attachments
stacktrace (2.61 KB, text/plain)
2013-11-05 14:32 UTC, Jiri Prox
Details
stacktrace (2.61 KB, text/plain)
2013-11-05 14:56 UTC, Jiri Prox
Details
stacktrace (2.61 KB, text/plain)
2013-11-06 20:47 UTC, Ralph Ruijs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2013-11-05 14:32:41 UTC
Build: NetBeans IDE Dev (Build 20131029-bad6e88b3089)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b49, Java(TM) SE Runtime Environment, 1.8.0-ea-b107
OS: Windows 7

User Comments:
jiriprox: Invoking code completion after ArrayList<




Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
   at java.lang.String.charAt(String.java:651)
   at com.sun.tools.javac.api.JavacTaskImpl.doParse(JavacTaskImpl.java:691)
   at com.sun.tools.javac.api.JavacTaskImpl.parseExpression(JavacTaskImpl.java:715)
   at com.sun.tools.javac.api.JavacTaskImpl.parseExpression(JavacTaskImpl.java:735)
   at org.netbeans.api.java.source.TreeUtilities.parseExpression(TreeUtilities.java:542)
   at org.netbeans.modules.editor.java.JavaCodeTemplateFilter$1$1.run(JavaCodeTemplateFilter.java:119)
Comment 1 Jiri Prox 2013-11-05 14:32:42 UTC
Created attachment 141872 [details]
stacktrace
Comment 2 Jiri Prox 2013-11-05 14:56:25 UTC
Created attachment 141875 [details]
stacktrace

Invoking code completion without any prefix
Comment 3 Jiri Prox 2013-11-06 09:49:09 UTC
Happens to often
Comment 4 Ralph Ruijs 2013-11-06 20:47:42 UTC
Created attachment 141917 [details]
stacktrace

Working in SyncDocumentRegion.java from java.editor
Comment 5 Dusan Balek 2013-12-04 15:31:40 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/4f13d4fce126