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 93500

Summary: Should not allow cyclic reference when adding project dependency
Product: xml Reporter: _ hong_lin <hong_lin>
Component: Catalog SupportAssignee: bhate <bhate>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P1    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description _ hong_lin 2007-01-30 04:33:32 UTC
Build: Gavotte daily build 070125_12

Right now, cyclic reference is allowed:
After adding project B as project A's reference, user is able to add project A
as projects B's refernce. The cyclic reference issue will cause the build
process be endless later.
Comment 1 Nam Nguyen 2007-01-30 08:28:53 UTC
Please refer to java project behavior/dialog.  Make sure the selection of self
is also prevented.
Comment 2 bhate 2007-01-31 21:53:22 UTC
This is valid issue.
Added check to prevent cyclic dependency and self reference (similar to j2se
project)
/cvs/xml/catalogsupport/src/org/netbeans/modules/xml/catalogsupport/ui/customizer/CustomizerProjectReferences.java,v
 <--  CustomizerProjectReferences.java
new revision: 1.1.2.4; previous revision: 1.1.2.3
Comment 3 _ hong_lin 2007-02-01 19:55:59 UTC
Verified the bug is fixed in Gavotte daily build 070131_27