On 3/22/02 7:46 AM, "Attila Szegedi" <[EMAIL PROTECTED]> wrote:

> Attached is the MethodMap.java that in its find() method uses the algorithm
> specified in JLS for finding the most specific applicable method among
> overloaded methods for given actual parameter types. (with the known caveat
> that it can't distinguish object from primitive types (ie. java.lang.Integer
> from int) since -- this being reflection -- it always recieves object, and
> never primitive parameters. Therefore, the
> 
> foo(Integer i)
> 
> and
> 
> foo(int i)
> 
> method signatures are ambigous when foo is called with a java.lang.Integer.
> We could discuss whether we optionally favor primitive over object types (or
> other way round) in this case instead of declaring ambiguity.
> 
> I've run the test suite against the new code (with special attention to
> IntrospectorTestCase and IntrospectorTestCase2), and after several trivial
> bugfixes it now works correctly. To be completely frank, the template
> encoding test actually failed but I don't think it has to do anything with
> my code.
> 
> It needs review from a committer (and hopefully a commit).

Thanks!  I'll look at it on the plane back.

> 
> BTW, what on the Earth is a Twonk?

A generic thingy.

:)

-- 
Geir Magnusson Jr.                                     [EMAIL PROTECTED]
System and Software Consulting
The question is : What is a Mahnamahna?


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to