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.
Steps to reproduce: 1) Create a JPanel. 2) Add some JButtons to it. 3) Add some actions to JButtons. 4) Save, compile. Every thing is ok. 5) Refactor -> Rename class -> to name "SomethingElse". Select "apply on comments" (don't know if this make difference), click DoRefactoring. 6) Try to recompile. Guarded block still with old names, and there is no chance to the user correct this, because it's a guarded block (except going out from IDE, editing with, let's say, notepad, then going back and CTRL+R).
You're right, it's known problem, thanks for your report. *** This issue has been marked as a duplicate of 48288 ***