test/hotspot/jtreg/vmTestbase/nsk/jvmti/SetFieldAccessWatch/setfldw006/setfldw006.cpp
changeset 52642 9cfc8b0c45fd
parent 51767 497950fd69a7
equal deleted inserted replaced
52641:09a3f379b927 52642:9cfc8b0c45fd
   111     if (res != JNI_OK || jvmti == NULL) {
   111     if (res != JNI_OK || jvmti == NULL) {
   112         printf("Wrong result of a valid call to GetEnv!\n");
   112         printf("Wrong result of a valid call to GetEnv!\n");
   113         return JNI_ERR;
   113         return JNI_ERR;
   114     }
   114     }
   115 
   115 
   116     if ((err = (jvmti->GetCapabilities(&caps))) != JVMTI_ERROR_NONE) {
   116     err = jvmti->GetCapabilities(&caps);
       
   117     if (err != JVMTI_ERROR_NONE) {
   117         printf("(GetCapabilities) unexpected error: %s (%d)\n",
   118         printf("(GetCapabilities) unexpected error: %s (%d)\n",
   118                TranslateError(err), err);
   119                TranslateError(err), err);
   119         return JNI_ERR;
   120         return JNI_ERR;
   120     }
   121     }
   121 
   122