--- a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/Exception/exception001/exception001.cpp Wed Nov 21 18:44:11 2018 +0000
+++ b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/Exception/exception001/exception001.cpp Wed Nov 21 10:46:45 2018 -0800
@@ -270,7 +270,8 @@
return STATUS_FAILED;
}
- if ((err = (jvmti->GetCurrentThread(&thread))) != JVMTI_ERROR_NONE) {
+ err = jvmti->GetCurrentThread(&thread);
+ if (err != JVMTI_ERROR_NONE) {
printf("Failed to get current thread: %s (%d)\n", TranslateError(err), err);
result = STATUS_FAILED;
return STATUS_FAILED;