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 79526 - custom type datatype is generated in default package
Summary: custom type datatype is generated in default package
Status: RESOLVED WONTFIX
Alias: None
Product: uml
Classification: Unclassified
Component: General (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@uml
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2006-06-30 20:56 UTC by Peter Lam
Modified: 2007-07-18 20:18 UTC (History)
1 user (show)

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 Peter Lam 2006-06-30 20:56:03 UTC
steps to reproduce:
1. create package with scoped class diagram
2. add class to the diagram
3. add attribute 'private bublic myAttr' to the class (with edit control)
'bublic' datatype is created in default package
(before regression in the same as class and diagram package)
4. I can't drag 'public' from default package to created package.
Comment 1 Sergey Petrov 2006-09-25 15:35:49 UTC
keyword migrated
Comment 2 Andrew Korostelev 2006-09-25 17:28:56 UTC
related enhancement issue 85705
Comment 3 Sergey Petrov 2006-11-02 09:34:19 UTC
it's not a regression to JSE8, but still may be stopper
Comment 4 Thuy.d Nguyen 2007-01-08 17:52:46 UTC
Since Buzz, a datatype has been created under the root Model node, so this is
the expected behavior.  An Enhancement has been filed to have the data type
created under  the package where it belongs to (85705).  Closing the issue as LATER
Comment 5 George Vasick 2007-05-18 19:17:27 UTC
Needs to be verified in NB 6.0.
Comment 6 Andrew Korostelev 2007-05-23 13:17:18 UTC
reproducible in nb6.0
Comment 7 George Vasick 2007-06-28 21:43:20 UTC
Targeted in the drawing area redesign.
Comment 8 Yang Su 2007-07-02 23:03:39 UTC
Re-categorize to "general", the root cause is not related to drawing library. 
Comment 9 Craig Conover 2007-07-18 20:18:26 UTC
This is not even an issue AFAIK. If you specify that an attribute is of type "Foo", and Fool is currently not a known
type from a known package, then the only assumption that can be made is that it has no package name.

To add to this argument, if you create the attribute and specify it as type mypack.Foo, then it will be created (if not
already existing) in the mypack package. So specifying no package would indicate the default package.

In other words, try adding an attribute to the Class element and add it as: 
private pack::Foo myParam
You will find the Foo datatype in the pack package.

And, I was able to drag the datatype from the default package to desired package