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 103520

Summary: Package rename refactoring breaks Swing App Framework code
Product: java Reporter: elharo <elharo>
Component: RefactoringAssignee: issues@java <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: Macintosh   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description elharo 2007-05-08 21:18:09 UTC
1. Create a new Swing application framework project using the wizard. This
creates a file with a name like desktopapplication1.DesktopApplication.

2. perform a rename refactoring on the *package* to change it to com.example.foo

3. Notice the code is broken.

The specific problem seems to be that a class literal of the form
desktopapplication1.DesktopApplication.class appears in the unmodifiable section
of code generated from the user interface form and the refactoring does not
change this.

The problem does not occur with non-UI code. I.e. usually the package rename
refactoring does update class literals.
Comment 1 Jiri Prox 2007-05-09 10:57:25 UTC
Yes, this is known problem. The refactoring should be integrated with UI code.
Thanks for your report anyway.

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