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.
dev build 200409121800 I run "fix imports" on the attached code and get the attached exception.
Created attachment 17658 [details] Stack-trace
Created attachment 17659 [details] Source code that triggers exception
This is caused by the first "(JTree)" in the following line of code (which you'll find in the attached source-code): (JTree) tree = (JTree) e.getSource(); Basically it is true that there is a compiler error in the code and it is malformed, but this shouldn't cause exceptions to be thrown.
This issue seems to be fixed, I cannot reproduce it in the current build (it was reliably reproducible in the dev build 200409121800).