From: SourceForge.net <no...@so...> - 2010-03-03 18:57:26
|
Bugs item #2962806, was opened at 2010-03-03 19:57 Message generated for change (Tracker Item Submitted) made by gerdbohlender You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=2962806&group_id=44253 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Interactions Group: 2: Annoying Status: Open Resolution: None Priority: 5 Private: No Submitted By: Gerd Bohlender (gerdbohlender) Assigned to: Nobody/Anonymous (nobody) Summary: Problem with polymorphism in interactions Initial Comment: // Dr. Java r5122 and r5004 jar-Files, Windows 7 // in interactions window enter the following code: class A { int x() { return 1; } } class B extends A { int x() { return 2; } } A a = new B(); a.x() // result is: 1 // this is wrong, it should be 2 (polymorphism for non-static method) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=2962806&group_id=44253 |