2001-04-02 Marcus G. Daniels <mgd@swarm.org>
* jni.cc (wrap_value<jclass>): New specialization.
From-SVN: r41021
+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
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));
+}
+
\f
static jint