public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
From: "tromey at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: java-prs@gcc.gnu.org
Subject: [Bug java/18278] JNI functions cannot return a weak reference
Date: Tue, 29 Nov 2005 18:58:00 -0000	[thread overview]
Message-ID: <20051129185827.8128.qmail@sourceware.org> (raw)
In-Reply-To: <bug-18278-9563@http.gcc.gnu.org/bugzilla/>



------- Comment #9 from tromey at gcc dot gnu dot org  2005-11-29 18:58 -------
Subject: Bug 18278

Author: tromey
Date: Tue Nov 29 18:58:23 2005
New Revision: 107677

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=107677
Log:
gcc/java:
        PR java/18278:
        * expr.c (build_jni_stub): Unwrap the return value.
        * java-tree.h (soft_unwrapjni_node): New define.
        (enum java_tree_index): Added JTI_SOFT_UNWRAPJNI_NODE.
        * decl.c (java_init_decl_processing): Initialize
        soft_unwrapjni_node.
libjava:
        PR java/18278:
        * testsuite/libjava.jni/pr18278.out: New file.
        * testsuite/libjava.jni/pr18278.c: New file.
        * testsuite/libjava.jni/pr18278.java: New file.
        * include/jvm.h (_Jv_UnwrapJNIweakReference): Declare.
        * jni.cc (_Jv_UnwrapJNIweakReference): New function.
        (call): Unwrap return value if needed.

Added:
    branches/gcc-4_1-branch/libjava/testsuite/libjava.jni/pr18278.c
    branches/gcc-4_1-branch/libjava/testsuite/libjava.jni/pr18278.java
    branches/gcc-4_1-branch/libjava/testsuite/libjava.jni/pr18278.out
Modified:
    branches/gcc-4_1-branch/gcc/java/ChangeLog
    branches/gcc-4_1-branch/gcc/java/decl.c
    branches/gcc-4_1-branch/gcc/java/expr.c
    branches/gcc-4_1-branch/gcc/java/java-tree.h
    branches/gcc-4_1-branch/libjava/ChangeLog
    branches/gcc-4_1-branch/libjava/include/jvm.h
    branches/gcc-4_1-branch/libjava/jni.cc


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18278


  parent reply	other threads:[~2005-11-29 18:58 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [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 [this message]
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
2004-11-02 18:53 [Bug java/18278] New: " 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051129185827.8128.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=java-prs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).