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 35350

Summary: Code Completion String IndexOutOfBoundsException
Product: java Reporter: bcowie <bcowie>
Component: UnsupportedAssignee: issues@ide <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 3.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:

Description bcowie 2003-08-08 20:07:24 UTC
While running Code Completion from a Filesystem Window, a 
java.lang.String IndexOutOfBoundsException was encountered. 
The contents of the ide.log is as follows:

*********** Exception occurred ************ at Fri Aug 08 
12:47:28 EDT 2003
Annotation: Parser error
java.lang.StringIndexOutOfBoundsException: String index out 
of range: -992
	at java.lang.String.<init>(String.java:192)
	at java.lang.String.copyValueOf(String.java:2185)
	at 
org.netbeans.modules.java.gj.V8TreeTranslator.getString
(V8TreeTranslator.java:136)
	at 
org.netbeans.modules.java.gj.V8TreeTranslator._case
(V8TreeTranslator.java:491)
	at org.netbeans.lib.javac.v8.tree.Tree$VarDef.visit
(Tree.java:493)
	at 
org.netbeans.modules.java.gj.V8TreeTranslator._case
(V8TreeTranslator.java:303)
	at 
org.netbeans.lib.javac.v8.tree.Tree$ClassDef.visit
(Tree.java:407)
	at 
org.netbeans.modules.java.gj.V8TreeTranslator._case
(V8TreeTranslator.java:188)
	at 
org.netbeans.lib.javac.v8.tree.Tree$TopLevel.visit
(Tree.java:344)
	at 
org.netbeans.modules.java.gj.V8TreeTranslator.process
(V8TreeTranslator.java:94)
	at 
org.netbeans.modules.java.gj.ParserEngine.completeRequest
(ParserEngine.java:360)
	at 
org.netbeans.modules.java.gj.ParserEngine.parseObject
(ParserEngine.java:176)
	at 
org.netbeans.modules.java.gj.JavaParserEngine.process
(JavaParserEngine.java:72)
	at 
org.netbeans.modules.java.parser.ParsingSupport$Processor.pr
ocess(ParsingSupport.java:711)
	at 
org.netbeans.modules.java.parser.ParsingSupport$Processor.pa
rseLockModel(ParsingSupport.java:662)
[catch] at 
org.netbeans.modules.java.parser.ParsingSupport$Processor.ru
n(ParsingSupport.java:593)
	at org.openide.util.Task.run(Task.java:136)
	at org.openide.util.RequestProcessor$Task.run
(RequestProcessor.java:328)
	at org.openide.util.RequestProcessor$Processor.run
(RequestProcessor.java:670)
==>
WARNING - ErrorManager detected cyclic exception nesting:
	java.lang.StringIndexOutOfBoundsException: String 
index out of range: -992
Be sure not to annotate an exception with itself, directly 
or indirectly.
Comment 1 pzajac 2003-08-11 09:45:25 UTC
reassigned to java/code
Comment 2 Jan Pokorsky 2003-12-11 17:50:29 UTC

*** This issue has been marked as a duplicate of 18582 ***