Name: joT67522 Date: 08/26/97
jEnv->IsInstanceOf(null,jEnv->FindClass("[B"))
returns true. Indeed the is_instance_of code in interpreter says that
"since null can be cast to any object return true".
(In my case the null is the value of some object field.)
This appears to be contrary to the language spec:
JLS 1.0 section 15.19.2 states
(where syntax is 'RelationalExpression instanceof ReferenceType'):
"the result of the instanceof operator is true if the value of the
RelationalExpression is not null and the reference could be cast to
the ReferenceType without raising a ClassCastException. Otherwise
the result is false."
company - Adobe Systems , email - ###@###.###
======================================================================