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 86693

Summary: element from another project is placed on diagram even if it can't be imported
Product: uml Reporter: Andrew Korostelev <akorostelev>
Component: ProjectAssignee: issues@uml <issues>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 86690    
Bug Blocks:    

Description Andrew Korostelev 2006-10-06 16:19:19 UTC
If user drag-n-drops element to diagram from another project that has imported
element from the current one, 
User get's message that import is not allowed, but element is placed on diagram.

steps to reproduce:
- we have 'UmlProject1' with 'Class1' element
- 'UmlProject2' with 'Class2' element
- import 'Class1' to 'UmlProject2'
- create class diagram 'Diagram1' in 'UmlProject1'.
- drag-n-drop 'Class2' from 'UmlProject2' to 'Diagram1'
importing is not allowed with the following message: 'Cannot add cyclic references'.
As a result element is placed on diagram but doesn't appear as Imported Element
in project tree.
Comment 1 Andrew Korostelev 2006-10-06 16:20:22 UTC
may be it is related to issue 82873
Comment 2 Andrew Korostelev 2007-01-09 13:52:28 UTC
see also issue 86686 - can't import element from project which previously had
reference to the current one
Comment 3 Sergey Petrov 2009-01-23 14:07:49 UTC
still the same in 6.5