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.
I keep having to close the file in NetBeans and re-open it to clear the Java compilation errors (redlines), when using Alt-Enter to fix imports. Unfortunately I can't give you an example of exactly when, but it happens to me pretty often (I have started just reloading after fixing all of the imports with Alt-Enter. I just tried to make it happen when putting in this bug report, but it worked fine in a simple program - There must be a corner case where it's within a certain type of class, variables in different places, after copy/paste operation, or something else. By submitting, I'm hoping someone else has experienced and reported this, or gives you a heads-up that it's occurring. In practice, I usually have more than one fix per line when this occurs, but again my simple example worked.