EXCEPTION IS NOT THROWN
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   arya_khedeker
Posted On:   Tuesday, January 13, 2004 09:18 PM

am presently working on J2ME . The following code doesnot throw a NullPointer exeception.
jclass jcls;
if(psd==0) {

printf("########before");

jcls= (*env)->FindClass
(env,"java/lang/NullPointerException");

(*env)->ThrowNew(env,jcls,"Can't divide by zero.");

printf("########after");

}
if psd =0 then following above mentioned code is exceuted but no exception is thrown and the control reaches the next line after throwNew. kindly reply asap

About | Sitemap | Contact