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 259145 - Add warning for cyclic dependencies between classes.
Summary: Add warning for cyclic dependencies between classes.
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
Depends on:
Reported: 2016-05-06 00:18 UTC by clinuxrulz
Modified: 2016-05-06 00:18 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description clinuxrulz 2016-05-06 00:18:01 UTC
Cyclic dependencies hurt how long a project takes to compile. C# already warns about such things.

When code is written to avoid cyclic dependencies the code compiles fast, and background scanning is also *MUCH* faster.

When digging into a project with a large amount of source code it can be hard to detect which classes are causing a cyclic dependency, and sometimes one can actually accidentally introduce a cyclic dependency. It would be nice if javac could warn about such things. (Maybe with a parameter like -XdetectCyclicDependencies)