test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetBytecodes/bytecodes003/bytecodes003.cpp
changeset 52642 9cfc8b0c45fd
parent 51653 b51d348698c2
child 52776 c05ba185a1d3
equal deleted inserted replaced
52641:09a3f379b927 52642:9cfc8b0c45fd
   436     if (res != JNI_OK || jvmti == NULL) {
   436     if (res != JNI_OK || jvmti == NULL) {
   437         printf("Wrong result of a valid call to GetEnv!\n");
   437         printf("Wrong result of a valid call to GetEnv!\n");
   438         return JNI_ERR;
   438         return JNI_ERR;
   439     }
   439     }
   440 
   440 
   441     if ((err = (jvmti->GetCapabilities(&caps))) != JVMTI_ERROR_NONE) {
   441     err = jvmti->GetCapabilities(&caps);
       
   442     if (err != JVMTI_ERROR_NONE) {
   442         printf("(GetCapabilities) unexpected error: %s (%d)\n",
   443         printf("(GetCapabilities) unexpected error: %s (%d)\n",
   443                TranslateError(err), err);
   444                TranslateError(err), err);
   444         return JNI_ERR;
   445         return JNI_ERR;
   445     }
   446     }
   446 
   447 
   447     if ((err = (jvmti->GetCapabilities(&caps))) != JVMTI_ERROR_NONE) {
   448     err = jvmti->GetCapabilities(&caps);
       
   449     if (err != JVMTI_ERROR_NONE) {
   448         printf("(GetCapabilities) unexpected error: %s (%d)\n",
   450         printf("(GetCapabilities) unexpected error: %s (%d)\n",
   449                TranslateError(err), err);
   451                TranslateError(err), err);
   450         return JNI_ERR;
   452         return JNI_ERR;
   451     }
   453     }
   452 
   454