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:
parent
6541ace0b0
commit
c5c6ab5de5
@ -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(
|
||||
|
||||
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user