interpret.cc (run): Use _Jv_CheckCast.
* interpret.cc (run) <insn_checkcast, checkcast_resolved>: Use _Jv_CheckCast. From-SVN: r101427
This commit is contained in:
parent
8972a0acae
commit
9cc2dc63bb
@ -1,3 +1,8 @@
|
||||
2005-06-29 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* interpret.cc (run) <insn_checkcast, checkcast_resolved>: Use
|
||||
_Jv_CheckCast.
|
||||
|
||||
2005-06-28 Robin Green <greenrd@greenrd.org>
|
||||
|
||||
PR java/22189
|
||||
|
@ -25,7 +25,6 @@ details. */
|
||||
#include <java/lang/StringBuffer.h>
|
||||
#include <java/lang/Class.h>
|
||||
#include <java/lang/reflect/Modifier.h>
|
||||
#include <java/lang/ClassCastException.h>
|
||||
#include <java/lang/VirtualMachineError.h>
|
||||
#include <java/lang/InternalError.h>
|
||||
#include <java/lang/NullPointerException.h>
|
||||
@ -3022,8 +3021,7 @@ _Jv_InterpMethod::run (void *retp, ffi_raw *args, _Jv_InterpMethod *meth)
|
||||
jclass to = (_Jv_Linker::resolve_pool_entry (meth->defining_class,
|
||||
index)).clazz;
|
||||
|
||||
if (value != NULL && ! to->isInstance (value))
|
||||
throw new java::lang::ClassCastException (to->getName());
|
||||
value = (jobject) _Jv_CheckCast (to, value);
|
||||
|
||||
PUSHA (value);
|
||||
|
||||
@ -3040,8 +3038,7 @@ _Jv_InterpMethod::run (void *retp, ffi_raw *args, _Jv_InterpMethod *meth)
|
||||
SAVE_PC();
|
||||
jobject value = POPA ();
|
||||
jclass to = (jclass) AVAL ();
|
||||
if (value != NULL && ! to->isInstance (value))
|
||||
throw new java::lang::ClassCastException (to->getName());
|
||||
value = (jobject) _Jv_CheckCast (to, value);
|
||||
PUSHA (value);
|
||||
}
|
||||
NEXT_INSN;
|
||||
|
Loading…
Reference in New Issue
Block a user