Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Calling varargs method without varargs parameter.

807591Mar 11 2008 — edited Mar 12 2008
Hello
I really appreciate your help on clarifying the following problem.

1) I have method signature as

public User validateUser(User usr, boolean isLogin,Object...args)
2) When I call this method as
obj.validateUser(usrObject,true);

In windows environment, the method implementation specified in 1) is called and no issues.

But, when the same code is deployed on linux, I get the following error
java.lang.NoSuchMethodError: com.mysubpackage.dao.myobject.*validateUser(Lcom/startf orce/system/User;Z)Lcom/startforce/system/User;*

Please let me know, if there is any known incompatibility issue out there between windows and linux.
Thanks
Muthu
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 9 2008
Added on Mar 11 2008
5 comments
220 views