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.
After entering a very long string constant declaration in Java source file, Java parser will crash with java.lang.StringIndexOutOfBoundsException at org.netbeans.modules.java.gj.V8TreeTranslator.getS tring(V8TreeTranslator.java:136). See attached source file for an example.
Created attachment 11664 [details] Parsing this file will crash the parser
If i split the very long string literal into several fragments connected with + operator on multiple lines, it will not crash. There is also some problem in the way the exception is reported - it references itself as original cause, causing an infinite loop in the exception dialog. See attached ide.log file.
Created attachment 11666 [details] ide.log
*** This issue has been marked as a duplicate of 18582 ***