public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/18278] New: JNI functions cannot return a weak reference
@ 2004-11-02 18:53 laurent at bearteam dot org
  2004-11-02 18:55 ` [Bug java/18278] " tromey at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: laurent at bearteam dot org @ 2004-11-02 18:53 UTC (permalink / raw)
  To: java-prs

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


^ permalink raw reply	[flat|nested] 13+ messages in thread
[parent not found: <bug-18278-9563@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2005-12-06  2:39 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-02 18:53 [Bug java/18278] New: JNI functions cannot return a weak reference laurent at bearteam dot org
2004-11-02 18:55 ` [Bug java/18278] " tromey at gcc dot gnu dot org
2004-11-02 20:09 ` laurent at bearteam dot org
2004-11-02 20:34 ` laurent at bearteam dot org
2004-11-02 20:38 ` laurent at bearteam dot org
2004-12-01 21:41 ` tromey at gcc dot gnu dot org
2004-12-02 13:37 ` pinskia at gcc dot gnu dot org
     [not found] <bug-18278-9563@http.gcc.gnu.org/bugzilla/>
2005-11-28 20:06 ` tromey at gcc dot gnu dot org
2005-11-29 18:35 ` tromey at gcc dot gnu dot org
2005-11-29 18:58 ` tromey at gcc dot gnu dot org
2005-11-29 21:14 ` tromey at gcc dot gnu dot org
2005-12-06  2:14 ` tromey at gcc dot gnu dot org
2005-12-06  2:39 ` tromey at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).