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.
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)
Created attachment 111438 [details] stacktrace
dup of issue 194869 ?
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=181266
Strange, there seems to be proper locking so I will add some test regarding DefaultToken$InputSourceSubsequence correctness.
Created attachment 113039 [details] stacktrace Pasting (copied from browser) php code to php file
111 dups ... P1
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
verified in trunk
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.
v.