test/hotspot/jtreg/vmTestbase/nsk/jvmti/SetFieldAccessWatch/setfldw006/setfldw006.cpp
equal
deleted
inserted
replaced
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 |