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