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.
Summary: | "Fix Imports" doesn't find nested types, removes too many imports | ||
---|---|---|---|
Product: | java | Reporter: | afreije <afreije> |
Component: | Unsupported | Assignee: | Daniel Prusa <dprusa> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 4.x | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
afreije
2004-08-11 11:51:55 UTC
Fixed. Checking in JavaFixAllImports.java; /cvs/editor/src/org/netbeans/modules/editor/java/JavaFixAllImports.java,v <-- JavaFixAllImports.java new revision: 1.11; previous revision: 1.10 This bug has been fixed only partly (Q-build 2004-08-12). Undo has been fixed, but in the example, java.util.List is still removed by Fix Imports. List is used in the declaration of Foo.get(), so it should not be removed from the imports. Initially I set this bug's subcomponent to "srcmodel" because maybe the nested type expressions are correctly scanned, but ignored further on. My knowledge of NetBeans' internals are insufficient to be sure though. The bug is reproducible in Q-build 2004-08-12, but it is fixed in the following dev builds (the related commit was not included into the Q-build). Reorganization of java component |