-Ade<br /><a href="http://www.barkah.org" target="_blank" rel="nofollow">www.barkah.org</a>
-Ade<br /><a href="http://www.barkah.org" target="_blank" rel="nofollow">www.barkah.org</a>
Sai Surya, SCJP 5.0, SCWCD 5.0, IBM 833 834
http://sai-surya-talk.blogspot.com, I believe in Murphy's law.
-Ade<br /><a href="http://www.barkah.org" target="_blank" rel="nofollow">www.barkah.org</a>
Sorry, but the explanation provided in that link is wrong. This issue has nothing to do with covariant returns really.
all events occur in real time
-Ade<br /><a href="http://www.barkah.org" target="_blank" rel="nofollow">www.barkah.org</a>
Originally posted by Ade Barkah:
Then please explain why the code below, which has NO covariant return, and therefore no bridging method whatsoever, still return the SAME result.
You can't have it both ways.
-Ade<br /><a href="http://www.barkah.org" target="_blank" rel="nofollow">www.barkah.org</a>
Nah, the modified example I provided above would return the same result even under JDK 1.4.
all events occur in real time
-Ade<br /><a href="http://www.barkah.org" target="_blank" rel="nofollow">www.barkah.org</a>
-Ade<br /><a href="http://www.barkah.org" target="_blank" rel="nofollow">www.barkah.org</a>
... which is ALL that is actually happening. The rest of the fluff (covariant, bridging, etc.) are simply red-herrings. Feel free to use any JDK.
all events occur in real time
No, in fact c1.getObject() returns a B-type, as one would normally expect. Please verify this yourself.
all events occur in real time