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 137880 - REF: Renaming JavaBeans packages does not affect .form files
Summary: REF: Renaming JavaBeans packages does not affect .form files
Status: RESOLVED DUPLICATE of bug 131668
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-21 14:33 UTC by locked
Modified: 2008-07-11 16:25 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 locked 2008-06-21 14:33:09 UTC
1. create a JavaBean-Gui Component in package foo (i.e. JP exends JPanel)
2. add Bean to Palette
3. create Gui Component (i.e. NewJFrame) and add JP to it
4. close NewJFrame
4. refactor package foo to foo2
5. clean & build project
6. open NewJFrame

Warning: Errors occured in loading the form data. [....]
Information: Error in loading component:
[JFrame]->jP1
Cannot load component class foo.JP
The component cannot be loaded

Opening the .form file in a TextEditor shows the problem: package foo wasn't renamed to foo2
After renameing the package foo to foo2 in the.form file, everything works fine again.

Refactoring the ClassName doesn't seem to produce the error.

Expected behaviour: refactoring should also change the .form file
Comment 1 Jan Stola 2008-06-25 15:36:38 UTC
Reproducible.
Comment 2 Tomas Pavek 2008-07-11 16:25:19 UTC
Reproducible in 6.1, but works in current 6.5 dev builds. I think it was fixed by issue 131668. Renaming a package was 
not reflected in forms that are not in that package. If you can, please verify with some 6.5 build. Thanks

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