[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Java bindings question - pmayweg?

From: Max Bowsher <maxb_at_ukf.net>
Date: 2004-09-17 22:04:20 CEST

I merged r9883, r9905 to 1.0.x, but whilst doing so, noticed this:

+ jclass clazz = env->FindClass("java/lang/NullPointerException");
+ if(isJavaExceptionThrown())
+ {
+ return;
+ }
+ env->ThrowNew(clazz, message);
+ setExceptionThrown();
+ env->DeleteLocalRef(clazz);

I know nothing about JNI, but just wanted to comment that it seemed odd to
initialize clazz and then maybe not use it.

Is a reference to clazz being leaked here in the isJavaExceptionThrown ==
true case?


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Sep 17 22:04:46 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.