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.

Bug 80767

Summary: Refactor-> Rename don't rename guarded block on swing forms
Product: editor Reporter: brviking <brviking>
Component: RefactoringAssignee: issues@java <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P2    
Version: 5.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description brviking 2006-07-21 00:12:17 UTC
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).
Comment 1 Jiri Prox 2006-07-21 09:11:08 UTC
You're right, it's known problem, thanks for your report.

*** This issue has been marked as a duplicate of 48288 ***