Bug 1781130, Wrong static method called

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Bug 1781130, Wrong static method called

Tom Moore-5
It looks like the problem is that the algorithm that find the most
specific match only looks at the arguments to the method call, and
ignores sorting on the most specific class.  It compares each
candidate method call, and take the most recently 'best matched' call.
 The list was being prepared from the base class to the super class,
so super class entries were compared later and were preferred.  A
simple fix is to reverse the order of the list with super class
methods first, and base class methods later.  Here is a patch that
does that.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Beanshell-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beanshell-developers

reflect.patch (1K) Download Attachment
Loading...