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.
Appears to be losing java.lang.* - see attached screen shot. Started seeing this in build 041017, and seeing it now in build 041028.
Created attachment 18587 [details] ss
Is the file that you are invoking the FixAllImports action on in a project, or is it a free-standing java file?
It is in a project.
More info: I think whatever cache code completion uses is corrupted - I can't get completion anymore on things like java.lang.Class. One thing that is *very bad* is that now, if I press ctrl-alt-F, Fix Imports *deletes* imports that are good, but which it cannot recognize, making my class uncompilable. I think I can trace this back to a single incident, several restarts ago: I had a class like public class Foo extends Component (it imported java.awt.Component) I added a J to make iit public class Foo extends JComponent an exception with the message "object was deleted" was thrown, and after that code completion was broken, and this behavior started (I experienced it once before, and deleted the mdr cache). Hope that helps some...
old target milestone, please re-evaluate
Dane, please look at it. Thanks.
I cannot reproduce this bug based on the given description. I have not also seen problems with Fix all imports of this kind in recent builds. There were made several fixes related to storage stability and IvalidObjectExceptions. I belive they can cover this case. Closing as works for me, however, if you encounter it again, feel free to reopen this issue.