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

Summary: StringIndexOutOfBoundsException: begin 760, end 471, length 474
Product: java Reporter: muellermi <muellermi>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal CC: nickdolan
Priority: P3    
Version: Dev   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 228481
Attachments: stacktrace

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