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.
In project A, I have interface Foo: public interface Foo { public static final int CONSTANT = 1; public int doSomething(); } In project B, I implement it as an inner class public class Main { private static class Bar implements Foo { public int doSomething() { return CONSTANT; } } } I run Fix imports on B.Main. I get an error message telling me Fix Imports couldn't identify the class CONSTANT. Only seems to happen if the interface is in a different project than the implementation. I am using project dependencies, not jar deps. (Large) example attached. Unzip the attached zip into contrib/ (that's where I have it, don't know if it matters - no nb module projects in it anyway). Open all the projects. Open flexdockimaginarymailer.Main as it is now in the zip file. Run Fix Imports against it. You should see the same thing.
Created attachment 28220 [details] Bunch of projects in a zip file, to reproduce the problem
Dane, please take a look at it. Thanks.
Fixed in trunk. Checking in JavaFixAllImports.java; /cvs/java/editor/src/org/netbeans/modules/editor/java/JavaFixAllImports.java,v <-- JavaFixAllImports.java new revision: 1.22; previous revision: 1.21