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 27287 - IllegalArgumentException in initNamePos
Summary: IllegalArgumentException in initNamePos
Status: RESOLVED DUPLICATE of bug 27636
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows 95/98
: P3 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-12 23:48 UTC by ats37
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ats37 2002-09-12 23:48:39 UTC
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)
==>
Comment 1 Svata Dedic 2002-09-13 06:34:22 UTC
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.
Comment 2 Tomas Hurka 2002-09-30 10:11:06 UTC
This was probably caused by running parsing recursively from another
parsing. See issue #27636

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