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 270141 - StringIndexOutOfBoundsException: begin 760, end 471, length 474
Summary: StringIndexOutOfBoundsException: begin 760, end 471, length 474
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-20 19:52 UTC by muellermi
Modified: 2017-05-01 22:22 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 228481


Attachments
stacktrace (2.20 KB, text/plain)
2017-03-20 19:52 UTC, muellermi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description muellermi 2017-03-20 19:52:28 UTC
Build: NetBeans IDE Dev (Build 201703160002)
VM: Java HotSpot(TM) 64-Bit Server VM, 9-ea+161, Java(TM) SE Runtime Environment, 9-ea+161
OS: Linux

User Comments:
muellermi: editing lambda within Java Shell

muellermi: invoke autocompleteion 
.stream().filter(p -> p.get[ctrl+space])




Stacktrace: 
java.lang.StringIndexOutOfBoundsException: begin 760, end 471, length 474
   at java.lang.String.checkBoundsBeginEnd(String.java:3123)
   at java.lang.String.substring(String.java:1911)
   at org.netbeans.modules.java.completion.BaseTask.getEnvImpl(BaseTask.java:369)
   at org.netbeans.modules.java.completion.BaseTask.getCompletionEnvironment(BaseTask.java:266)
   at org.netbeans.modules.java.completion.JavaCompletionTask.resolve(JavaCompletionTask.java:287)
   at org.netbeans.modules.java.completion.BaseTask.run(BaseTask.java:93)
Comment 1 muellermi 2017-03-20 19:52:30 UTC
Created attachment 163898 [details]
stacktrace
Comment 2 Exceptions Reporter 2017-05-01 22:22:15 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=228481