mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-03 00:34:21 +08:00
jni.cc (wrap_value<jclass>): New specialization.
2001-04-02 Marcus G. Daniels <mgd@swarm.org> * jni.cc (wrap_value<jclass>): New specialization. From-SVN: r41021
This commit is contained in:
parent
92c3688a97
commit
56f2b5bd76
@ -1,3 +1,7 @@
|
||||
2001-04-02 Marcus G. Daniels <mgd@swarm.org>
|
||||
|
||||
* jni.cc (wrap_value<jclass>): New specialization.
|
||||
|
||||
2001-04-02 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* java/io/PrintStream.java (out): Removed field. Fixes PR
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user