test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetBytecodes/bytecodes001/bytecodes001.cpp
changeset 52642 9cfc8b0c45fd
parent 51653 b51d348698c2
child 52776 c05ba185a1d3
equal deleted inserted replaced
52641:09a3f379b927 52642:9cfc8b0c45fd
    78     if (res != JNI_OK || jvmti == NULL) {
    78     if (res != JNI_OK || jvmti == NULL) {
    79         printf("Wrong result of a valid call to GetEnv!\n");
    79         printf("Wrong result of a valid call to GetEnv!\n");
    80         return JNI_ERR;
    80         return JNI_ERR;
    81     }
    81     }
    82 
    82 
    83     if ((err = (jvmti->GetCapabilities(&caps))) != JVMTI_ERROR_NONE) {
    83     err = jvmti->GetCapabilities(&caps);
       
    84     if (err != JVMTI_ERROR_NONE) {
    84         printf("(GetCapabilities) unexpected error: %s (%d)\n",
    85         printf("(GetCapabilities) unexpected error: %s (%d)\n",
    85                TranslateError(err), err);
    86                TranslateError(err), err);
    86         return JNI_ERR;
    87         return JNI_ERR;
    87     }
    88     }
    88 
    89