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 - Fix import doesn't work with static imports
Summary: Fix import doesn't work with static imports
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-09 15:09 UTC by ehucka
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 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