Originally posted by M Beck: is this always an error, or merely when the compiler can prove the recursion is endless?
Since the this() and super() statements must be the first statement in a constructor, and since they therefore can't be controller by a conditional statement, I think any circular constructor invocation must be infinitely recursive.
Philip Pomario
Ranch Hand
Joined: Oct 03, 2003
Posts: 113
posted
0
Thanks for all the help and new thoughts on the topic!
Philip Pomario
Ranch Hand
Joined: Oct 03, 2003
Posts: 113
posted
0
I just passed the SCJP1.4 exam and wanted to post this appreciation note to thank everyone who helped me understand Java a little better. Without your help this personal achievement wouldn't be possible.