Skip to content

Commit

Permalink
Correct logic error in eclipse-openj9#10524
Browse files Browse the repository at this point in the history
Signed-off-by: Keith W. Campbell <keithc@ca.ibm.com>
  • Loading branch information
keithc-ca committed Sep 8, 2020
1 parent 02aced1 commit 3ac3a80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/bcverify/vrfyhelp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ isProtectedAccessPermitted(J9BytecodeVerificationData *verifyData, J9UTF8* decla
/* flipped logic - currentRamClass is the same class or a super class of the target class */
if (J9ROMCLASS_IS_HIDDEN(romClass)) {
currentClassName = J9ROMCLASS_CLASSNAME(romClass);
if (J9UTF8_DATA_EQUALS(targetClassName, targetClassLength, J9UTF8_DATA(currentClassName), J9UTF8_LENGTH(currentClassName))) {
if (!J9UTF8_DATA_EQUALS(targetClassName, targetClassLength, J9UTF8_DATA(currentClassName), J9UTF8_LENGTH(currentClassName))) {
/* fail if current class and target class are not the same */
return FALSE;
}
Expand Down

0 comments on commit 3ac3a80

Please sign in to comment.