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.
041022 custom, JDK 1.5.0. I have noticed that sometimes in this build Fix Imports does not import (or ask about) a few items. Specifically, in projects/libraries, I deleted all imports from Library.java and used Fix Imports to recreate them. It failed to import ResourceBundle. The background parser, as well as real javac, considered this an error of course. But I tried again and again and it just said "All used types already imported". Fast Import worked fine on this class. Similarly, in LibrariesCustomizer.java, F.I. failed to import NodeOp from org.openide.nodes, or GridBagConstraints, or a number of other needed imports. I don't recall seeing such problems with F.I. in earlier builds.
In fact F.I. is pretty much useless in this build. Don't you guys have unit tests for this?? Seems like it should be straightforward to write tests for: given a starting file, check what imports are added/removed.
Dane, please look at it.
It is reproducible on the following simple source: public Test { public void test() { ResourceBundle bundle; } } The problem is that MultipartId corresponding to "ResourceBundle" returns null when getElement() is called on it (UnresolvedClass should be returned). For some types of the local variable this test case works correctly, for some not (NodeOp is another example).
*** Issue 50805 has been marked as a duplicate of this issue. ***
*** Issue 50807 has been marked as a duplicate of this issue. ***
Fixed in trunk. Checking in src/org/netbeans/modules/javacore/jmiimpl/javamodel/ SemiPersistentElement.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/ SemiPersistentElement.java,v <-- SemiPersistentElement.java new revision: 1.54; previous revision: 1.53 done Checking in src/org/netbeans/modules/javacore/jmiimpl/javamodel/UsageFinder.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/ UsageFinder.java,v <-- UsageFinder.java new revision: 1.23; previous revision: 1.22 done
*** Issue 50785 has been marked as a duplicate of this issue. ***
*** Issue 50816 has been marked as a duplicate of this issue. ***
Verified in 4.2 (200507110943)
Reorganization of java component