< prev index next >

test/hotspot/jtreg/vmTestbase/nsk/share/jni/ExceptionCheckingJniEnv.hpp

Print this page
rev 52293 : [mq]: verify_deprecation

@@ -56,10 +56,13 @@
  *
  *  Note: at a future date, this will also include the tracing mechanism done in
  *  NSK_VERIFY, which will thus embed its logic into the ExceptionCheckingJniEnv
  *  and clearing that up for the code readers and writers.
  */
+
+#define TRACE_JNI_CALL __LINE__, __FILE__
+
 class ExceptionCheckingJniEnv {
  public:
   // JNIEnv API redefinitions.
   jfieldID GetFieldID(jclass klass, const char *name, const char* type);
   jclass GetObjectClass(jobject obj);

@@ -79,10 +82,12 @@
   jobject NewLocalRef(jobject ref);
   void DeleteLocalRef(jobject ref);
   jweak NewWeakGlobalRef(jobject obj);
   void DeleteWeakGlobalRef(jweak obj);
 
+  jclass FindClass(const char* kls, int line = -1, const char* file = 0);
+
   // ExceptionCheckingJniEnv methods.
   JNIEnv* GetJNIEnv() {
     return _jni_env;
   }
 
< prev index next >