diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-04-02 22:52:40 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-04-02 22:52:40 +0000 |
commit | e2d8b6b7ac24a94b0ee1b8b6b3726bc93e39870e (patch) | |
tree | 76377b410583c11f673fbf7616d4e366b635770d /libjava/jni.cc | |
parent | 7afc7ed8370564b57f289d12deede580b17b7e8b (diff) | |
download | gcc-e2d8b6b7ac24a94b0ee1b8b6b3726bc93e39870e.tar.gz |
2001-04-02 Marcus G. Daniels <mgd@swarm.org>
* jni.cc (wrap_value<jclass>): New specialization.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41021 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/jni.cc')
-rw-r--r-- | libjava/jni.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libjava/jni.cc b/libjava/jni.cc index b60823ee893..d41dd01e7bd 100644 --- a/libjava/jni.cc +++ b/libjava/jni.cc @@ -376,6 +376,15 @@ wrap_value (JNIEnv *env, jobject value) return value == NULL ? value : _Jv_JNI_NewLocalRef (env, value); } +template<> +static jclass +wrap_value (JNIEnv *env, jclass value) +{ + return (value == NULL + ? value + : (jclass) _Jv_JNI_NewLocalRef (env, (jobject) value)); +} + static jint |