This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/18278] New: JNI functions cannot return a weak reference
- From: "laurent at bearteam dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Nov 2004 18:53:46 -0000
- Subject: [Bug java/18278] New: JNI functions cannot return a weak reference
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
If a JNI function returns a weak reference created with NewWeakGlobalRef, you'll
get a class cast exception like this:
java.lang.ClassCastException: gnu.gcj.runtime.JNIWeakRef cannot be cast to
org.gnu.glib.GObject
at _Jv_CheckCast (/usr/lib/libgcj.so.6.0.0)
--
Summary: JNI functions cannot return a weak reference
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: laurent at bearteam dot org
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
GCC build triplet: i486-pc-linux-gnu
GCC host triplet: i486-pc-linux-gnu
GCC target triplet: i486-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18278