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 #11 from tromey at gcc dot gnu dot org  2005-12-06 02:13 -------
Subject: Bug 18278

Author: tromey
Date: Tue Dec  6 02:13:54 2005
New Revision: 108096

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=108096
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_0-branch/libjava/testsuite/libjava.jni/pr18278.c
    branches/gcc-4_0-branch/libjava/testsuite/libjava.jni/pr18278.java
    branches/gcc-4_0-branch/libjava/testsuite/libjava.jni/pr18278.out
Modified:
    branches/gcc-4_0-branch/gcc/java/ChangeLog
    branches/gcc-4_0-branch/gcc/java/decl.c
    branches/gcc-4_0-branch/gcc/java/expr.c
    branches/gcc-4_0-branch/gcc/java/java-tree.h
    branches/gcc-4_0-branch/libjava/ChangeLog
    branches/gcc-4_0-branch/libjava/include/jvm.h
    branches/gcc-4_0-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]