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 - Package rename refactoring breaks Swing App Framework code
Summary: Package rename refactoring breaks Swing App Framework code
Status: RESOLVED DUPLICATE of bug 48288
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-08 21:18 UTC by elharo
Modified: 2007-08-14 12:36 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***