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 35989 - The build system should deal with circular dependencies
Summary: The build system should deal with circular dependencies
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Chris Webster
URL:
Keywords: API
Depends on:
Blocks:
 
Reported: 2003-09-10 09:31 UTC by Ondrej Rypacek
Modified: 2004-04-19 16:17 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 Ondrej Rypacek 2003-09-10 09:31:24 UTC
As the APIs don't prohibit circular dependencies
(they hardly could), the projects build system
should check for the errornous condition an report
an informative error instead of entering an
infinite loop.
Comment 1 Chris Webster 2003-09-10 14:43:21 UTC
This should already be handled in the build system during the build
process as well as when using the user interface to set dependencies.
If there is a specific test case please list the steps to reproduce.
Comment 2 Ondrej Rypacek 2003-09-10 14:57:57 UTC
1. create a Jar build target
2. open its customizer, on the third pane (content specification),
check the checkbox next to itself, close the dialog
3. build the jar -- the compilation never finishes

Btw, I thought there was no user interface to set dependencies anymore.
Comment 3 Chris Webster 2003-09-10 15:12:32 UTC
If you use the context menu from the output node you will see the
build target dependencies action. This is one place where cycles are
checked (although this menu does not allow self references). You can
see this in your example by adding a dependency from jar to compiled
classes and vice versa (the cycle should be reported). I hope this
functionality will continue to exist as there is no other way to
generically create dependencies, which is necessary to link arbitrary
targets.
Comment 4 Ondrej Rypacek 2003-09-10 15:36:52 UTC
Thanks, I missed that (I was looking for it on the output target node
I wanted to set dependencies for)

Could this check be published in the APIs (if it is not yet) so that I
can call it from the my jar content editor? That would be great! (see
#35994)


Comment 5 Vitezslav Stejskal 2003-09-12 11:06:47 UTC
So, does this still mean that buildsystem doesn't detect cyclic deps
during the build? Or is this issue just duplicate of issue #35994?
Comment 6 Ondrej Rypacek 2003-09-12 11:21:40 UTC
I thought it was not implemented at all. But it looks like, it was
implemented but there's a bug in it (try the steps-to-reproduce above). 
So it's still a valid defect.

Comment 7 Chris Webster 2003-09-12 17:53:06 UTC
Fixed and updated test cases
Comment 8 Ondrej Rypacek 2003-09-25 11:34:18 UTC
Works, no cycle.
Comment 9 Jan Becicka 2003-11-25 14:22:20 UTC
As described in
http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss the
current work on projects prototype has been stopped.

Marking issue as CLOSED.