This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug java/18278] JNI functions cannot return a weak reference



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]