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:
Marcus G. Daniels 2001-04-02 22:52:40 +00:00 committed by Tom Tromey
parent 92c3688a97
commit 56f2b5bd76
2 changed files with 13 additions and 0 deletions

View File

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

View File

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