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

Summary: Add warning for cyclic dependencies between classes.
Product: java Reporter: clinuxrulz
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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)