This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Resolution of cyclic dependencies by javac Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Resolution of cyclic dependencies by javac" Watch "Resolution of cyclic dependencies by javac" New topic

Resolution of cyclic dependencies by javac

Ashish Chopra
Ranch Hand

Joined: Nov 30, 2004
Posts: 134

I am reposting this as it got lost yesterday...

How does the java compiler reslove cyclic dependencies. Suppose I have the following code:

There is a clear cyclic dependency between A & B. How is this taken care of by the java compiler at compile time?


Quis Custodiet Ipsos Custodes<br /> <br />My blog: <a href="" target="_blank" rel="nofollow"></a>
Ramakrishna Nalla
Ranch Hand

Joined: Apr 21, 2005
Posts: 61
Good Question... I love this type of Core questions...Thanks..

I think U may be get results what you want,by using -verbose option in compilation time.
I agree. Here's the link:
subject: Resolution of cyclic dependencies by javac
It's not a secret anymore!