calling an overloaded method Dynamically

Hi,

I hav 2 methods

public object[] combine(Object[] sur,Object[] nonsur)

public objectcombine(Object sur,Object nonsur)

I am using java.lang.Reflet class Method to invoke dynamically

When i am calling the method with array arguments, it is calling the method without array arguments.

I know that arrays are treated as objects.

Is there any way to solve this problem.

regards,

Shashi

[512 byte] By [shashi_0207a] at [2007-11-27 11:46:09]
# 1

try casting it to an object array.

(Object[])your array[]

TuringPesta at 2007-7-29 18:05:53 > top of Java-index,Java Essentials,Java Programming...