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.
When opening a specific xx.java file that has a [Form] netbeans repeatedly displays window showing Stringindexoutofbounds exception and requesting report problem here. Does not stop until netbeans is closed.
Created attachment 20446 [details] Netbeans log
First exception already fixed - issue #43954 And StringIndexOutOfBoundsException seems to be a problem in java module. Reassigning. java.lang.StringIndexOutOfBoundsException: String index out of range: -1283 at java.lang.String.<init>(String.java:192) at java.lang.String.copyValueOf(String.java:2185) at org.netbeans.modules.java.parser.DocumentModelBuilder.setBodyBounds(DocumentModelBuilder.java:105) at org.netbeans.modules.java.gj.V8TreeTranslator._case(V8TreeTranslator.java:437) ...
The code the exception stacktrace refers to was completely replaced in NB 4.0 and is no longer called.
Thank you for the quick response. For your information: I found the apparant cause of the problem. There is a source line that is 32,406 bytes long. It has approx 32,380 blanks (0x20) appended to the beginning of a statement, that had been in the file and not modified for several weeks. I have no idea how these blanks were inserted. When the problem appeared I had bee running a different application for several hours, netbeans was minimized and the source file with the long statement was the focus file of the editor. The exception window popped up as focus window. I will attach a snipet of the source file containig the long statement.
Created attachment 20457 [details] Extraction of snippet of source file containing long statement
No longer relevant, verified.