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 256934

Summary: IllegalArgumentException: len=-1 < 0
Product: editor Reporter: Exceptions Reporter <exceptions_reporter>
Component: -- Other --Assignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal CC: soldatov
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 221470
Attachments: stacktrace

Description Exceptions Reporter 2015-12-02 16:23:57 UTC
This bug was originally marked as duplicate of bug 225026, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) Client VM, 25.65-b01, Java(TM) SE Runtime Environment, 1.8.0_65-b17
OS: Windows 8.1

User Comments:

java.lang.IllegalArgumentException: len=-1 < 0
   at org.netbeans.editor.BaseDocument.handleRemove(
   at org.netbeans.editor.BaseDocument$FilterBypassImpl.remove(
   at javax.swing.text.DocumentFilter.remove(
   at org.openide.text.CloneableEditorSupport$DocFilter.remove(
   at org.netbeans.editor.BaseDocument.remove(
   at org.netbeans.modules.web.core.syntax.completion.api.JspCompletionItem$
Comment 1 Exceptions Reporter 2015-12-02 16:23:58 UTC
Created attachment 157619 [details]
Comment 2 soldatov 2016-05-04 15:06:05 UTC
Stable scenario:
- Create empty C++ file
- type cls and press TAB
- Press Ctrl+R
- Type new class name and press Refactor button
==> java.lang.IllegalArgumentException
Comment 3 Exceptions Reporter 2016-11-28 10:27:04 UTC
This bug already has 5 duplicates