Subj : static method signature matching issues in Rhino & JUnit To : netscape.public.mozilla.jseng From : mohaks Date : Mon Aug 15 2005 05:43 pm All, We've been using Rhino with JUnit to enable writing of Test cases in JS. Now, we recently upgraded to 1.5.5 from 1.5.2, and noticed the following exception in our javascript test cases. The basic idea here is that I import the TestCase object in as a JavaObject (aliased to "Assert"), and then in Javascript, invoke: Assert.assertEquals("Unexpected status code", expectedStatusCode, statusCode); where expectedStatusCode and statusCode are vars set from an array. (Note, they are also strings). So, what we're doing is invoking the TestCase.assertEquals static method here. The exception makes little/no sense, and I'm trying to figure out what is going on. Exception - org.mozilla.javascript.EvaluatorException:The choice of Java constructor assertEquals matching JavaScript argument types (string,string,java.lang.String) is ambiguous; candidate constructors are: void assertEquals(java.lang.String,java.lang.Object,java.lang.Object), void assertEquals(java.lang.String,java.lang.String,java.lang.String) Any help would be greatly appreciated. thanks, mohak .