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 203009 - [71cat] ArrayIndexOutOfBoundsException: -72
Summary: [71cat] ArrayIndexOutOfBoundsException: -72
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 7.0
Hardware: All All
: P1 normal with 1 vote (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-04 00:18 UTC by schkovich
Modified: 2012-02-29 12:22 UTC (History)
19 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 181266


Attachments
stacktrace (6.58 KB, text/plain)
2011-10-04 00:18 UTC, schkovich
Details
stacktrace (6.63 KB, text/plain)
2011-11-09 10:55 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description schkovich 2011-10-04 00:18:32 UTC
Build: NetBeans IDE Dev (Build 201110030601)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.1-b02, Java(TM) SE Runtime Environment, 1.6.0_26-b03
OS: Linux

User Comments:
GUEST: Pasting a text

schkovich: pasted clipboard content over selected code




Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: -72
   at org.netbeans.modules.editor.lib2.document.CharContent.charAt(CharContent.java:80)
   at org.netbeans.lib.lexer.token.DefaultToken$InputSourceSubsequence.charAt(DefaultToken.java:247)
   at java.util.regex.Pattern$BmpCharProperty.match(Pattern.java:3366)
   at java.util.regex.Pattern$GroupHead.match(Pattern.java:4168)
   at java.util.regex.Pattern$Branch.match(Pattern.java:4114)
   at java.util.regex.Pattern$Start.match(Pattern.java:3055)
Comment 1 schkovich 2011-10-04 00:18:36 UTC
Created attachment 111438 [details]
stacktrace
Comment 2 Marian Mirilovic 2011-10-06 07:46:42 UTC
dup of issue 194869 ?
Comment 3 Exceptions Reporter 2011-10-08 15:20:05 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=181266
Comment 4 Miloslav Metelka 2011-10-17 09:53:04 UTC
Strange, there seems to be proper locking so I will add some test regarding DefaultToken$InputSourceSubsequence correctness.
Comment 5 Vladimir Riha 2011-11-09 10:55:04 UTC
Created attachment 113039 [details]
stacktrace

Pasting (copied from browser) php code to php file
Comment 6 Marian Mirilovic 2012-01-26 09:32:57 UTC
111 dups ... P1
Comment 7 Miloslav Metelka 2012-01-30 17:45:35 UTC
I've fixed a potential problem when a thread accessing token hierarchy without document read lock could negatively influence another thread accessing the hierarchy in a correct way. Also I've added a better info regarding potential IIOBE exception being thrown. Since the original exception will no longer be thrown anyway I mark this as fixed.
http://hg.netbeans.org/jet-main/rev/dab119ded799
Comment 8 Jiri Prox 2012-02-07 15:07:51 UTC
verified in trunk
Comment 9 Quality Engineering 2012-02-09 02:38:07 UTC
Integrated into 'releases', will be available in build *201202082200* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/6281d979e32f
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #203009 - ArrayIndexOutOfBoundsException: -72 in DefaultToken.
Comment 10 Jiri Prox 2012-02-29 12:22:08 UTC
v.