classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: finding method efficiently


From: Archie Cobbs
Subject: Re: finding method efficiently
Date: Tue, 28 Sep 2004 08:39:50 -0500 (CDT)

David Holmes wrote:
> Regardless this is not something I would want to hand code using the
> reflection API as Robert must do.

I have come across this same challenge several times now, i.e.,
having to write code that implements the Java "best match" semantics
for method invocation using reflection. Usually I end up doing something
that works in all the 'easy' cases and punt on the rest.

For an almost-example, look at Classpath's java.lang.Class.internalGetMethod().

So it would be nice if we could write this algorithm once and for all
and make it public somewhere :-)

-Archie

__________________________________________________________________________
Archie Cobbs      *        CTO, Awarix        *      http://www.awarix.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]