aspose file tools*
The moose likes Java in General and the fly likes Objects involved in a cycle! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Objects involved in a cycle!" Watch "Objects involved in a cycle!" New topic
Author

Objects involved in a cycle!

Alexandre Martins
Greenhorn

Joined: May 21, 2002
Posts: 9
Anyone could help me please?
I have 2 objects involved in a cycle.


I did a factory in order to build these objects, as follows:

How can i build one of these objects without have an StackOverflow error?
Thanks!
[ May 26, 2004: Message edited by: Alexandre Martins ]

Alexandre Martins Nunes<br />Rio de Janeiro - Brazil
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Just don't use the factory methods in implementing the factory methods.



[Jess in Action][AskingGoodQuestions]
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

Is this a definition, or a constructor?


http://home.arcor.de/hirnstrom/bewerbung
Alexandre Martins
Greenhorn

Joined: May 21, 2002
Posts: 9
ok, thanks!
 
Consider Paul's rocket mass heater.
 
subject: Objects involved in a cycle!