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 98446 - Problems when class is located in wrong package
Summary: Problems when class is located in wrong package
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Rastislav Komara
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-21 11:41 UTC by Jiri Prox
Modified: 2009-11-02 11:00 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 Jiri Prox 2007-03-21 11:41:46 UTC
NetBeans IDE Dev (Build 200703201900)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Linux version 2.6.5-1.358 running on i386
en_US (nb); UTF-8

There are some problems with resolving type when class is placed in package
which doesn't match the folder on disk. The fix import, ctrl navigation and add
import hint does not work. CC works like the class was in current package.

Steps to reproduce:
1) have two classes in folder src/pack:
package org; //bad package, should by pack
public class MyClass {
}

package pack;
public class Test {    
    public Test() {
        MyClass mc;                
    }    
}

-> MyClass is unresolved, but add import hint not provided ( fiximport dialog is
empty). When updating to org.MyClass mc, ctrl navigation does not work
Comment 1 Jan Lahoda 2007-03-21 23:32:02 UTC
The error provided by the parser for the example is strange - we should
investigate this to make sure we do not have a bigger problem.

See also issue #97579.
Comment 2 Rastislav Komara 2009-02-03 10:57:51 UTC
Overtake.
Comment 3 David Strupl 2009-03-31 16:05:07 UTC
Resolving all issues with milestone "future" as LATER. If you feel strongly that
it should be implemented please reopen and set the target milestone to "next".
Comment 4 Quality Engineering 2009-11-02 11:00:40 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX