geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dain Sundstrom <d...@iq80.com>
Subject Re: svn commit: r485321 - in /geronimo/server/trunk/modules: geronimo-kernel/src/main/java/org/apache/geronimo/gbean/ geronimo-kernel/src/main/java/org/apache/geronimo/gbean/runtime/ geronimo-kernel/src/test/java/org/apache/geronimo/gbean/ geronimo-kernel/...
Date Mon, 11 Dec 2006 18:04:43 GMT
On Dec 11, 2006, at 5:38 AM, anita kulshreshtha wrote:

> Gianny,
>     Thanks for looking into this. I did consider the easy way out. But
> the retrun type is part of the method signature. What happens if we
> have
>
> public class Myclass {
> public Object getObjectName()
> public String getObjectName()
> ..........................
> }
>     If JMXUtil was patched which one should it return?

The return type actually isn't part of the signature and the code  
above won't compile.

A Java method is uniquely identified by class, method name and  
parameters.  Once you have those three, you can always determine the  
return type.

-dain

Mime
View raw message