Subj : Re: Rhino - invoking multi-signatured java method from javascript To : Ariel Malka From : Igor Bukanov Date : Fri Sep 05 2003 05:12 pm Ariel Malka wrote: > i'm working with a global ScriptableObject, which is giving access > from javascript to some custom java methods... > > one of the methods i'm exposing is called "background", BUT it has two > different signatures: > > public void background(int rgb) { ... } > > and > > public void background(int r, int g, int b) { ... } > > > however, when i'm registering "background" with > ScriptableObject.defineFunctionProperties, i'm getting an exception: > > Method "background" occurs multiple times in class... > > > is there any workaround to this situations? thanks! See http://groups.google.com/groups?selm=bfrnvv%242b12%40ripley.netscape.com&oe=UTF-8 .