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 41863 - Parser error when changed package of already parsed class
Summary: Parser error when changed package of already parsed class
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-08 16:03 UTC by Lukas Hasik
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 Lukas Hasik 2004-04-08 16:03:17 UTC
NB3.6 RC3, jdk1.4.2_04

1,mount filesystem with examples package (sampledir)
2,create new class (IntegerField) in examples package
3,delete its package definition - so it is in no
package
4,compile it - it's added to code completition
5,add the package definition again 

this exception arise

Annotation: Parser error
org.openide.src.SourceException: Invalid full name
examples.IntegerField/IntegerField my name =
IntegerField/IntegerField
    at
org.netbeans.modules.java.model.ClassElementImpl.doSetName(ClassElementImpl.java:719)
    at
org.netbeans.modules.java.model.MemberElementImpl.setName(MemberElementImpl.java:267)
    at
org.netbeans.modules.java.parser.BaseElementInfo.updateBase(BaseElementInfo.java:162)
    at
org.netbeans.modules.java.parser.ClassInfo.updateElement(ClassInfo.java:120)
    at
org.netbeans.modules.java.parser.ChildCollection.updateChildren(ChildCollection.java:107)
    at
org.netbeans.modules.java.parser.SourceInfo.updateModel(SourceInfo.java:114)
    at
org.netbeans.modules.java.parser.ParsingSupport.updateSourceModel(ParsingSupport.java:499)
    at
org.netbeans.modules.java.parser.ParsingSupport.access$300(ParsingSupport.java:69)
    at
org.netbeans.modules.java.parser.ParsingSupport$Processor.updateModel(ParsingSupport.java:640)
    at
org.netbeans.modules.java.parser.ParsingSupport$Processor.run(ParsingSupport.java:596)
    at
org.netbeans.modules.java.model.DefaultLangModel.runUpdate(DefaultLangModel.java:500)
    at
org.netbeans.modules.java.parser.ParsingSupport$Processor.parseLockModel(ParsingSupport.java:667)
    at
org.netbeans.modules.java.parser.ParsingSupport$Processor.run(ParsingSupport.java:593)
    at org.openide.util.Task.run(Task.java:136)
    at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:686)
Comment 1 Jan Becicka 2004-07-02 00:35:04 UTC
This code was replaced by java module redesign.
Comment 2 Lukas Hasik 2004-07-28 14:06:57 UTC
v - unable to reproduce