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.
I'm using Netbeans 3.4 under JDK 1.4.0. I'm not entirely sure what prompted the exception listed below; I'd had the code completion popup window open, but rather than selecting an entry in it I'd either switched to another application or just clicked elsewhere in the editor window, I'm not entirely sure which. Next thing I knew, I'd got a dialog on the screen containing this exception. The line I'd been typing in the editor still contains only "System.out.println(Translator.);", Translator being the class I'd been doing the code completion on. Annotation: Parser error java.lang.IllegalArgumentException: .classUnknow at org.openide.src.Identifier.initNamePos (Identifier.java:86) at org.openide.src.Identifier.create (Identifier.java:129) at org.openide.src.Identifier.create (Identifier.java:135) at org.netbeans.modules.java.gj.V8TreeTranslator.createIdentif ier(V8TreeTranslator.java:723) at org.netbeans.modules.java.gj.V8TreeTranslator._case (V8TreeTranslator.java:207) at org.netbeans.lib.javac.v8.tree.Tree$Import.visit (Tree.java:358) 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:353) at org.netbeans.modules.java.gj.ParserEngine.parseObject (ParserEngine.java:176) at org.netbeans.modules.java.gj.JavaParserEngine.process (JavaParserEngine.java:70) at org.netbeans.modules.java.parser.ParsingSupport$Processor.p rocess(ParsingSupport.java:704) at org.netbeans.modules.java.parser.ParsingSupport$Processor.p arseLockModel(ParsingSupport.java:659) at org.netbeans.modules.java.parser.ParsingSupport$Processor.r un(ParsingSupport.java:590) at org.openide.util.Task.run(Task.java:136) [catch] at org.openide.util.RequestProcessor$Processor.run (RequestProcessor.java:599) ==>
It seems that the parser kicked in when there was an import statement malformed like "import foo." or "import .foo" - anyway it should mark the line with an error rather than die with an exception.
This was probably caused by running parsing recursively from another parsing. See issue #27636 *** This issue has been marked as a duplicate of 27636 ***