< prev index next >

test/hotspot/jtreg/serviceability/jvmti/StartPhase/AllowedFunctions/libAllowedFunctions.c

Print this page

        

@@ -108,12 +108,12 @@
 
     check_jvmti_error(jvmti, "GetClassStatus", err);
     // This function is only used in a ClassPrepare event context
     if ((status & JVMTI_CLASS_STATUS_VERIFIED)    == 0 ||
         (status & JVMTI_CLASS_STATUS_PREPARED)    == 0 ||
-        (status & JVMTI_CLASS_STATUS_INITIALIZED) == 1 ||
-        (status & JVMTI_CLASS_STATUS_ERROR)       == 1) {
+        (status & JVMTI_CLASS_STATUS_INITIALIZED) != 0 ||
+        (status & JVMTI_CLASS_STATUS_ERROR)       != 0) {
         printf("  ## Error: unexpected class status: 0x%08x\n", status);
     }
     printf("    Class status: 0x%08x\n", status);
 }
 
< prev index next >