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 48781

Summary: Fix import doesn't work with static imports
Product: java Reporter: ehucka <ehucka>
Component: UnsupportedAssignee: Tomas Hurka <thurka>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P3    
Version: 4.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:

Description ehucka 2004-09-09 15:09:25 UTC
Fix import on a class using static imports shows
an information dialog "No import found for type
names:".
Comment 1 ehucka 2004-09-10 09:04:01 UTC
it should be fixed in the beta2
Comment 2 Jan Chalupa 2004-09-10 12:18:09 UTC
Why a P3 needs to be fixed in Beta 2 high resistance mode? Please
raise the priority if you really consider this a showstopper.
Comment 3 ehucka 2004-09-10 13:12:09 UTC
It is not showstopper I see it only with JComboBox constants. e.g. a
Math's constants works right.
Comment 4 Daniel Prusa 2004-09-13 08:49:53 UTC
Can be repoduced using, e.g., JComboBox.ABORT - ABORT is inherited
static field. Usages of such fields are resolved to MultipartId
pointing to UnresolvedClass (it should be VariableAccess, not
MultipartId).
Comment 5 Tomas Hurka 2004-09-21 13:43:21 UTC
Fixed in trunk.
Checking in org/netbeans/modules/javacore/parser/Scope.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/parser/Scope.java,v  <--  
Scope.java
new revision: 1.11; previous revision: 1.10
done
Comment 6 ehucka 2004-11-08 14:06:23 UTC
verified