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 251720 - javax.swing.text.BadLocationException: Invalid (offset=242 + length=81)=323 > (docLen+1)=86
Summary: javax.swing.text.BadLocationException: Invalid (offset=242 + length=81)=323 >...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-08 17:15 UTC by Vladimir Voskresensky
Modified: 2015-05-13 02:55 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 216642


Attachments
stacktrace (1.28 KB, text/plain)
2015-04-08 17:15 UTC, Vladimir Voskresensky
Details
stacktrace (1.28 KB, text/plain)
2015-05-12 15:52 UTC, Vladimir Voskresensky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Voskresensky 2015-04-08 17:15:47 UTC
Build: NetBeans IDE Dev (Build 20150129-4f6c8b5a9321)
VM: Java HotSpot(TM) Server VM, 24.76-b04, Java(TM) SE Runtime Environment, 1.7.0_76-b13
OS: SunOS

User Comments:
vv159170: typing block comment in editor after on line
#include <file> /*typing|




Stacktrace: 
javax.swing.text.BadLocationException: Invalid (offset=242 + length=81)=323 > (docLen+1)=86
   at org.netbeans.modules.editor.lib2.document.EditorDocumentContent.checkBoundsInContent(EditorDocumentContent.java:310)
   at org.netbeans.modules.editor.lib2.document.EditorDocumentContent.getString(EditorDocumentContent.java:237)
   at javax.swing.text.AbstractDocument.getText(AbstractDocument.java:772)
   at org.netbeans.modules.cnd.refactoring.completion.implmethod.CsmImplementsMethodCompletionItem.createExtractBodyItem(CsmImplementsMethodCompletionItem.java:237)
   at org.netbeans.modules.cnd.refactoring.completion.implmethod.CsmImplementsMethodCompletionProvider$Query.getItems(CsmImplementsMethodCompletionProvider.java:255)
   at org.netbeans.modules.cnd.refactoring.completion.implmethod.CsmImplementsMethodCompletionProvider$Query.query(CsmImplementsMethodCompletionProvider.java:127)
Comment 1 Vladimir Voskresensky 2015-04-08 17:15:49 UTC
Created attachment 153100 [details]
stacktrace
Comment 2 Vladimir Voskresensky 2015-05-12 15:52:39 UTC
Created attachment 153620 [details]
stacktrace

typed space in cpp file after #include "file"|
then switched to header and removed some text
Comment 3 Alexander Simon 2015-05-12 16:35:38 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/3b6065fdfbdd
Comment 4 Quality Engineering 2015-05-13 02:55:23 UTC
Integrated into 'main-silver', will be available in build *201505130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/3b6065fdfbdd
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #251720 javax.swing.text.BadLocationException: Invalid (offset=242 + length=81)=323 > (docLen+1)=86