Can't assume object in reportConversionError is scriptable, so call more

generic java.object.toString instead.


git-svn-id: svn://10.0.0.236/trunk@48869 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rogerl%netscape.com 1999-09-22 22:06:14 +00:00
parent 6541ace0b0
commit c5c6ab5de5
2 changed files with 2 additions and 2 deletions

View File

@ -837,7 +837,7 @@ public class NativeJavaObject implements Scriptable, Wrapper {
}
static void reportConversionError(Object value, Class type) {
Object[] args = { Context.toString(value),
Object[] args = { value.toString(),
NativeJavaMethod.javaSignature(type)
};
throw Context.reportRuntimeError(

View File

@ -837,7 +837,7 @@ public class NativeJavaObject implements Scriptable, Wrapper {
}
static void reportConversionError(Object value, Class type) {
Object[] args = { Context.toString(value),
Object[] args = { value.toString(),
NativeJavaMethod.javaSignature(type)
};
throw Context.reportRuntimeError(