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 269538

Summary: NegativeArraySizeException at org.netbeans.editor.BaseDocument.getChars
Product: editor Reporter: FrantaM
Component: Completion & TemplatesAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: Dev   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 222259
Attachments: stacktrace

Description FrantaM 2017-01-12 14:20:55 UTC
Build: NetBeans IDE Dev (Build 201701020001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.102-b14, Java(TM) SE Runtime Environment, 1.8.0_102-b14
OS: Windows 10

User Comments:
FrantaM: ?

GUEST: Stopping weblogic server

GUEST: compile project

GUEST: Problem

GUEST: Autocompletion of a method name while editing a Java source code.

GUEST: I used the code autocompletion and Netbeans went up to 800% cpu usage on my multicore Mac Pro (2009).




Stacktrace: 
java.lang.NegativeArraySizeException
   at org.netbeans.editor.BaseDocument.getChars(BaseDocument.java:1188)
   at org.netbeans.editor.Utilities.getIdentifierBefore(Utilities.java:725)
   at org.netbeans.lib.editor.codetemplates.CodeTemplateCompletionProvider$Query.query(CodeTemplateCompletionProvider.java:174)
   at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:223)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
   at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
Comment 1 FrantaM 2017-01-12 14:20:57 UTC
Created attachment 163381 [details]
stacktrace
Comment 2 Exceptions Reporter 2017-09-26 14:14:39 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=222259