This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug libgcj/23182] instanceof sometimes fails if compiled with -findirect-dispatch
- From: "fitzsim at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 5 Sep 2005 17:40:47 -0000
- Subject: [Bug libgcj/23182] instanceof sometimes fails if compiled with -findirect-dispatch
- References: <20050801155040.23182.hannes@helma.at>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From fitzsim at redhat dot com 2005-09-05 17:40 -------
>From http://java.sun.com/j2se/1.5.0/docs/guide/jni/spec/functions.html :
IsAssignableFrom
jboolean IsAssignableFrom(JNIEnv *env, jclass clazz1,
jclass clazz2);
Determines whether an object of clazz1 can be safely cast to clazz2.
GtkWindowPeer can be safely cast to GtkGenericPeer so IsAssignableFrom should
return JNI_TRUE.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23182