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 - NegativeArraySizeException at org.netbeans.editor.BaseDocument.getChars
Summary: NegativeArraySizeException at org.netbeans.editor.BaseDocument.getChars
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-12 14:20 UTC by FrantaM
Modified: 2017-09-26 14:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 222259


Attachments
stacktrace (835 bytes, text/plain)
2017-01-12 14:20 UTC, FrantaM
Details

Note You need to log in before you can comment on or make changes to this bug.
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