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 154869 - adding packages to the diagram and adding a nested link does not refactor code
Summary: adding packages to the diagram and adding a nested link does not refactor code
Status: NEW
Alias: None
Product: uml
Classification: Unclassified
Component: Code Generation (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: issues@uml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-07 15:11 UTC by shche123
Modified: 2009-05-25 21:06 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 shche123 2008-12-07 15:11:58 UTC
adding packages to the diagram and adding a nested link does not refactor code

diagram with two classes and one package
add a new package to the diagram
nested link from existing package to the new package
nested link from new package to one of the classes
import statement is not added to the other class which references the 'moved' class

Thanks
Leonid
Comment 1 Sergey Petrov 2008-12-07 19:33:46 UTC
is it only for two code gen or re->code gen?
will it be generated correctly on fresh uml project with code ghen into empty java project?
Comment 2 shche123 2008-12-07 23:16:01 UTC
I have only noticed this behavior on a new UML and new Java project, doing code generating from a new UML project into
an empty Java project. Would think that this happens when class does not yet exist in the Java project.