Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename IS_REF_OR_VAL_SIGNATURE to IS_CLASS_SIGNATURE #20160

Merged
merged 2 commits into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions debugtools/DDR_VM/src/com/ibm/j9ddr/vm29/j9/ArgBits.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class ArgBits
/* Parse the signature inside the ()'s */
char thisChar;
while ((thisChar = signature.charAt(++stringPtr)) != ')') {
if ((thisChar == '[') || J9ClassHelper.isRefOrValSignature(thisChar)) {
if ((thisChar == '[') || J9ClassHelper.isClassSignature(thisChar)) {
/* Mark a bit for objects or arrays */
resultArray[writePtr] |= argBit;

Expand All @@ -59,7 +59,7 @@ public class ArgBits
stringPtr++;
}

if (J9ClassHelper.isRefOrValSignature(thisChar)) {
if (J9ClassHelper.isClassSignature(thisChar)) {
/* Walk past the name of the object class */
while ((thisChar = signature.charAt(stringPtr)) != ';') {
stringPtr++;
Expand Down
2 changes: 1 addition & 1 deletion debugtools/DDR_VM/src/com/ibm/j9ddr/vm29/j9/SendSlot.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static UDATA getSendSlotsFromSignature(J9UTF8Pointer signature) throws Co
/* skip all '['s */
for (i++; J9UTF8Helper.stringValue(signature).charAt(i) == '['; i++);
char charAti = J9UTF8Helper.stringValue(signature).charAt(i);
if (J9ClassHelper.isRefOrValSignature(charAti)) {
if (J9ClassHelper.isClassSignature(charAti)) {
/* FALL THRU */
} else {
sendArgs = sendArgs.add(1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ private int mapStack(U16 totalStack, byte[] map,
utf8Signature = J9ROMFieldRefPointer.cast(pool.add(index)).nameAndSignature().signature();

signature = J9UTF8Helper.stringValue(utf8Signature).charAt(0);
if (J9ClassHelper.isRefOrValSignature(signature) || (signature == '[')) {
if (J9ClassHelper.isClassSignature(signature) || (signature == '[')) {
PUSH(OBJ);
} else {
PUSH(INT);
Expand All @@ -515,7 +515,7 @@ private int mapStack(U16 totalStack, byte[] map,
utf8Signature = J9ROMFieldRefPointer.cast(pool.add(index)).nameAndSignature().signature();

signature = J9UTF8Helper.stringValue(utf8Signature).charAt(0);
if (J9ClassHelper.isRefOrValSignature(signature) || (signature == '[')) {
if (J9ClassHelper.isClassSignature(signature) || (signature == '[')) {
PUSH(OBJ);
} else {
PUSH(INT);
Expand Down Expand Up @@ -574,7 +574,7 @@ private int mapStack(U16 totalStack, byte[] map,
while (args[i] == '[') {
i += 1;
}
if (J9ClassHelper.isRefOrValSignature(args[i])) {
if (J9ClassHelper.isClassSignature(args[i])) {
do {
i += 1;
} while (args[i] != ';');
Expand All @@ -583,7 +583,7 @@ private int mapStack(U16 totalStack, byte[] map,

signature = args[i + 1];
if (signature != 'V') {
if (J9ClassHelper.isRefOrValSignature(signature) || (signature == '[')) {
if (J9ClassHelper.isClassSignature(signature) || (signature == '[')) {
PUSH(OBJ);
} else {
PUSH(INT);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -528,12 +528,12 @@ public static boolean isAnonymousClass(J9ClassPointer clazz) throws CorruptDataE

/**
* Queries if a given char is the first character of a reference or value type signature.
* Equivalent to J9's IS_REF_OR_VAL_SIGNATURE macro.
* Equivalent to J9's IS_CLASS_SIGNATURE macro.
*
* @param firstChar the first character of the signature being checked
* @return true if the character indicates the beginning of a reference or value signature, false otherwise
*/
public static boolean isRefOrValSignature(char firstChar) {
public static boolean isClassSignature(char firstChar) {
return firstChar == 'L';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public static J9ClassPointer findClass(J9ClassLoaderPointer classLoader, String

int arity = calculateClassArity(signature);

if ((arity > 0) && !J9ClassHelper.isRefOrValSignature(signature.charAt(arity))) {
if ((arity > 0) && !J9ClassHelper.isClassSignature(signature.charAt(arity))) {
return PRIMITIVE_TO_CLASS.get(signature.charAt(arity));
} else {
while (classIterator.hasNext()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ boolean isObjectArray() throws CorruptDataException, com.ibm.j9ddr.CorruptDataEx
J9ArrayClassPointer arrayClass = J9ArrayClassPointer.cast(j9class);

// Any multi-dimensional array is an object array, as is any single dimensional array with an object type (i.e. [Lwhatever; or [Qwhatever;).
if (arrayClass.arity().gt(1) || J9ClassHelper.isRefOrValSignature(getName().charAt(1))) {
if (arrayClass.arity().gt(1) || J9ClassHelper.isClassSignature(getName().charAt(1))) {
isObjectArray = true;
} else {
isObjectArray = false;
Expand Down
6 changes: 3 additions & 3 deletions runtime/bcutil/ClassFileOracle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ ClassFileOracle::walkFields()
markStringAsReferenced(constantValueIndex);
}
}
if ((IS_REF_OR_VAL_SIGNATURE(fieldChar))
if ((IS_CLASS_SIGNATURE(fieldChar))
|| ('[' == fieldChar)
) {
_objectStaticCount++;
Expand Down Expand Up @@ -427,7 +427,7 @@ ClassFileOracle::walkFields()
}
#if defined(J9VM_OPT_VALHALLA_FLATTENABLE_VALUE_TYPES)
if (containsKnownAnnotation(foundAnnotations, NULLRESTRICTED_ANNOTATION)) {
if (!IS_REF_OR_VAL_SIGNATURE(fieldChar)) {
if (!IS_CLASS_SIGNATURE(fieldChar)) {
if ('[' == fieldChar) {
throwGenericErrorWithCustomMsg(J9NLS_CFR_NO_NULLRESTRICTED_IN_ARRAYFIELD__ID, fieldIndex);
} else { /* primitive type */
Expand Down Expand Up @@ -458,7 +458,7 @@ ClassFileOracle::walkFields()
case CFR_ATTRIBUTE_NullRestricted:
/* JVMS: There must not be a NullRestricted attribute in the attributes table of a field_info
* structure whose descriptor_index references a primitive type or an array type.*/
if (!IS_REF_OR_VAL_SIGNATURE(fieldChar)) {
if (!IS_CLASS_SIGNATURE(fieldChar)) {
if ('[' == fieldChar) {
throwGenericErrorWithCustomMsg(J9NLS_CFR_NO_NULLRESTRICTED_IN_ARRAYFIELD__ID, fieldIndex);
} else { /* primitive type */
Expand Down
2 changes: 1 addition & 1 deletion runtime/bcutil/ClassFileWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1338,7 +1338,7 @@ ClassFileWriter::computeArgsCount(U_16 methodRefIndex)
while ((index < count) && ('[' == sig[index])) {
index += 1;
}
if (!IS_REF_OR_VAL_SIGNATURE(sig[index])) {
if (!IS_CLASS_SIGNATURE(sig[index])) {
break;
}
/* fall through */
Expand Down
2 changes: 1 addition & 1 deletion runtime/bcutil/ROMClassWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2221,7 +2221,7 @@ ROMClassWriter::writeNativeSignature(Cursor *cursor, U_8 *methodDescriptor, U_8
} else {
cursor->writeU8(nativeArgCharConversion[methodDescriptor[index] - 'A'], Cursor::GENERIC);
}
if (IS_REF_OR_VAL_SIGNATURE(methodDescriptor[index])) {
if (IS_CLASS_SIGNATURE(methodDescriptor[index])) {
while (';' != methodDescriptor[index]) {
++index;
}
Expand Down
4 changes: 2 additions & 2 deletions runtime/bcutil/jsrinliner.c
Original file line number Diff line number Diff line change
Expand Up @@ -1159,11 +1159,11 @@ evaluateCodeBlock (I_32 hasRET, J9JSRICodeBlock ** blockParentPointer, U_32 star
stackError |= popStack (jsrData);
if (args[step] == '[') {
while (args[++step] == '[');
if (!IS_REF_OR_VAL_SIGNATURE(args[step])) {
if (!IS_CLASS_SIGNATURE(args[step])) {
continue;
}
}
if (IS_REF_OR_VAL_SIGNATURE(args[step])) {
if (IS_CLASS_SIGNATURE(args[step])) {
while (args[++step] != ';');
continue;
}
Expand Down
4 changes: 2 additions & 2 deletions runtime/bcverify/rtverify.c
Original file line number Diff line number Diff line change
Expand Up @@ -2628,11 +2628,11 @@ j9rtv_verifyArguments (J9BytecodeVerificationData *verifyData, J9UTF8 * utf8stri
}

/* Object or array */
if (IS_REF_OR_VAL_SIGNATURE(*signature) || arity) {
if (IS_CLASS_SIGNATURE(*signature) || arity) {
IDATA reasonCode = 0;

/* Object array */
if (IS_REF_OR_VAL_SIGNATURE(*signature)) {
if (IS_CLASS_SIGNATURE(*signature)) {
signature++;
string = signature; /* remember the start of the string */
while (*signature++ != ';');
Expand Down
2 changes: 1 addition & 1 deletion runtime/bcverify/staticverify.c
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ checkBytecodeStructure (J9CfrClassFile * classfile, UDATA methodIndex, UDATA len
break;

case CFR_BC_areturn:
if (!IS_REF_OR_VAL_SIGNATURE(sigChar) && (sigChar != '[')) {
if (!IS_CLASS_SIGNATURE(sigChar) && (sigChar != '[')) {
/* fail, modify the bytecode to be incompatible in the second pass of verification */
if (sigChar != 'V') {
*(bcIndex - 1) = CFR_BC_return;
Expand Down
6 changes: 3 additions & 3 deletions runtime/bcverify/vrfyhelp.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ buildStackFromMethodSignature( J9BytecodeVerificationData *verifyData, UDATA **s
arity++;
}

if (IS_REF_OR_VAL_SIGNATURE(args[i])) {
if (IS_CLASS_SIGNATURE(args[i])) {
U_8 *string;
U_16 length = 0;

Expand Down Expand Up @@ -684,7 +684,7 @@ static UDATA *
pushType(J9BytecodeVerificationData *verifyData, U_8 * signature, UDATA * stackTop)
{
if (*signature != 'V') {
if ((*signature == '[') || IS_REF_OR_VAL_SIGNATURE(*signature)) {
if ((*signature == '[') || IS_CLASS_SIGNATURE(*signature)) {
PUSH(parseObjectOrArrayName(verifyData, signature));
} else {
UDATA baseType = (UDATA) argTypeCharConversion[*signature - 'A'];
Expand Down Expand Up @@ -1197,7 +1197,7 @@ parseObjectOrArrayName(J9BytecodeVerificationData *verifyData, U_8 *signature)
signature++;
}
arity = (UDATA) (signature - string);
if (IS_REF_OR_VAL_SIGNATURE(*signature)) {
if (IS_CLASS_SIGNATURE(*signature)) {
U_16 length = 0;
UDATA classIndex = 0;

Expand Down
4 changes: 2 additions & 2 deletions runtime/gc_check/CheckEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ GC_CheckEngine::checkClassStatics(J9JavaVM* vm, J9Class* clazz)
J9UTF8* sigUTF = J9ROMFIELDSHAPE_SIGNATURE(romFieldCursor);

/* interested in objects and all kinds of arrays */
if ((IS_REF_OR_VAL_SIGNATURE(J9UTF8_DATA(sigUTF)[0]))
if ((IS_CLASS_SIGNATURE(J9UTF8_DATA(sigUTF)[0]))
|| ('[' == J9UTF8_DATA(sigUTF)[0])
) {
numberOfReferences += 1;
Expand All @@ -897,7 +897,7 @@ GC_CheckEngine::checkClassStatics(J9JavaVM* vm, J9Class* clazz)
U_8* toSearchString = J9UTF8_DATA(sigUTF);
UDATA toSearchLength = J9UTF8_LENGTH(sigUTF);

if (IS_REF_OR_VAL_SIGNATURE(toSearchString[0])) {
if (IS_CLASS_SIGNATURE(toSearchString[0])) {
/* Convert signature to class name:
* Entering 'L' as well as closing ';' must be removed to get a proper class name
*/
Expand Down
6 changes: 3 additions & 3 deletions runtime/jcl/common/java_dyn_methodhandle.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ accessCheckFieldSignature(J9VMThread *currentThread, J9Class* lookupClass, UDATA
sigOffset += 1;
}

if (IS_REF_OR_VAL_SIGNATURE(lookupSigData[sigOffset])) {
if (IS_CLASS_SIGNATURE(lookupSigData[sigOffset])) {
BOOLEAN isVirtual = (0 == (((J9ROMFieldShape*)romField)->modifiers & J9AccStatic));
j9object_t argsArray = J9VMJAVALANGINVOKEMETHODTYPE_PTYPES(currentThread, methodType);
U_32 numParameters = J9INDEXABLEOBJECT_SIZE(currentThread, argsArray);
Expand Down Expand Up @@ -433,7 +433,7 @@ accessCheckMethodSignature(J9VMThread *currentThread, J9Method *method, j9object
endIndex = index;

/* If this entry is a class type, we need to do a classloader check on it */
if (IS_REF_OR_VAL_SIGNATURE(lookupSigData[index])) {
if (IS_CLASS_SIGNATURE(lookupSigData[index])) {
index += 1;

clazz = J9JAVAARRAYOFOBJECT_LOAD(currentThread, argsArray, i);
Expand Down Expand Up @@ -462,7 +462,7 @@ accessCheckMethodSignature(J9VMThread *currentThread, J9Method *method, j9object
while ('[' == lookupSigData[index]) {
index += 1;
}
if(IS_REF_OR_VAL_SIGNATURE(lookupSigData[index])) {
if(IS_CLASS_SIGNATURE(lookupSigData[index])) {
J9Class *returnRamClass = NULL;
/* Grab the MethodType returnType */
clazz = J9VMJAVALANGINVOKEMETHODTYPE_RTYPE(currentThread, methodType);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1281,7 +1281,7 @@ Java_java_lang_invoke_MethodHandleNatives_resolve(
while ('[' == J9UTF8_DATA(signature)[sigOffset]) {
sigOffset += 1;
}
if (IS_REF_OR_VAL_SIGNATURE(J9UTF8_DATA(signature)[sigOffset])) {
if (IS_CLASS_SIGNATURE(J9UTF8_DATA(signature)[sigOffset])) {
sigOffset += 1;
omrthread_monitor_enter(vm->classTableMutex);
UDATA clConstraintResult = verifyData->checkClassLoadingConstraintForNameFunction(
Expand Down
2 changes: 1 addition & 1 deletion runtime/jcl/common/java_lang_invoke_VarHandle.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ accessCheckFieldType(J9VMThread *currentThread, J9Class* lookupClass, J9Class* t
if (NULL != verifyData) {
U_8 *lookupSigData = J9UTF8_DATA(lookupSig);
/* Only check reference types (not primitive types) */
if (IS_REF_OR_VAL_SIGNATURE(*lookupSigData)) {
if (IS_CLASS_SIGNATURE(*lookupSigData)) {
J9ClassLoader *lookupClassloader = lookupClass->classLoader;
J9ClassLoader *typeClassloader = type->classLoader;
if (typeClassloader != lookupClassloader) {
Expand Down
4 changes: 2 additions & 2 deletions runtime/jcl/common/reflecthelp.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ computeArgCount(J9ROMMethod *method)
while ((index < count) && ('[' == bytes[index])) {
index += 1;
}
if (!IS_REF_OR_VAL_SIGNATURE(bytes[index])) {
if (!IS_CLASS_SIGNATURE(bytes[index])) {
break;
}
/* fall through */
Expand Down Expand Up @@ -537,7 +537,7 @@ getArgCountFromSignature(J9UTF8* signature)
i++;
}
/* skip class name */
if (IS_REF_OR_VAL_SIGNATURE(sigData[i])) {
if (IS_CLASS_SIGNATURE(sigData[i])) {
while (';' != sigData[i]) {
i++;
}
Expand Down
2 changes: 1 addition & 1 deletion runtime/jnichk/jnicheck.c
Original file line number Diff line number Diff line change
Expand Up @@ -2457,7 +2457,7 @@ jniCheckObjectArg(const char* function, JNIEnv* env, jobject aJobject, char* sig
while (*sigArgs == '[') {
sigArgs++;
}
if (IS_REF_OR_VAL_SIGNATURE(*sigArgs)) {
if (IS_CLASS_SIGNATURE(*sigArgs)) {
while (*sigArgs != ';') {
sigArgs++;
}
Expand Down
2 changes: 1 addition & 1 deletion runtime/jvmti/jvmtiHelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ skipSignature(U_8 ** pUtfData)

/* Skip to the end of Object type signatures */

if (IS_REF_OR_VAL_SIGNATURE(utfChar)) {
if (IS_CLASS_SIGNATURE(utfChar)) {
do {
utfChar = nextUTFChar(pUtfData);
} while (utfChar != ';');
Expand Down
2 changes: 1 addition & 1 deletion runtime/oti/j9.h
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ static const struct { \
#define J9_IS_J9ARRAYCLASS_NULL_RESTRICTED(clazz) FALSE
#define J9CLASS_GET_NULLRESTRICTED_ARRAY(clazz) NULL
#endif /* defined(J9VM_OPT_VALHALLA_FLATTENABLE_VALUE_TYPES) */
#define IS_REF_OR_VAL_SIGNATURE(firstChar) ('L' == (firstChar))
#define IS_CLASS_SIGNATURE(firstChar) ('L' == (firstChar))
hangshao0 marked this conversation as resolved.
Show resolved Hide resolved

#if defined(J9VM_OPT_CRIU_SUPPORT)
#define J9_IS_CRIU_OR_CRAC_CHECKPOINT_ENABLED(vm) (J9_ARE_ANY_BITS_SET(vm->checkpointState.flags, J9VM_CRAC_IS_CHECKPOINT_ENABLED | J9VM_CRIU_IS_CHECKPOINT_ENABLED))
Expand Down
2 changes: 1 addition & 1 deletion runtime/rastrace/method_trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ traceMethodArguments(J9VMThread* thr, J9UTF8* signature, UDATA* arg0EA, char* bu
while (*sigChar == '[') {
sigChar++;
}
if (IS_REF_OR_VAL_SIGNATURE(*sigChar)) {
if (IS_CLASS_SIGNATURE(*sigChar)) {
while (*sigChar != ';') {
sigChar++;
}
Expand Down
2 changes: 1 addition & 1 deletion runtime/stackmap/debuglocalmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ validateLocalSlot(J9VMThread *currentThread, J9Method *ramMethod, U_32 offsetPC,
break;
}
} else {
if ((slotSignature == '[') || IS_REF_OR_VAL_SIGNATURE(slotSignature)) {
if ((slotSignature == '[') || IS_CLASS_SIGNATURE(slotSignature)) {
if ((localMap[slot / 32] & (1 << (slot % 32))) == 0) {
rc = J9_SLOT_VALIDATE_ERROR_LOCAL_MAP_MISMATCH;
}
Expand Down
4 changes: 2 additions & 2 deletions runtime/util/argbits.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ argBitsFromSignature(U_8 * signature, U_32 * resultArrayBase, UDATA resultArrayS

/* Parse the signature inside the ()'s */
while (*(++signature) != ')') {
if ((*signature == '[') || IS_REF_OR_VAL_SIGNATURE(*signature)) {
if ((*signature == '[') || IS_CLASS_SIGNATURE(*signature)) {
*resultArrayBase |= argBit;
while (*signature == '[') {
signature++;
}
if (IS_REF_OR_VAL_SIGNATURE(*signature)) {
if (IS_CLASS_SIGNATURE(*signature)) {
while (*signature != ';') {
signature++;
}
Expand Down
2 changes: 1 addition & 1 deletion runtime/util/hshelp.c
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ iterateToNextArgument(U_32 sigIndex, U_32 sigLength, U_8* sigData)
if (sigIndex >= sigLength) return sigIndex;

/* check for object */
if (IS_REF_OR_VAL_SIGNATURE(sigData[sigIndex])) {
if (IS_CLASS_SIGNATURE(sigData[sigIndex])) {
while ((sigIndex < sigLength) && (';' != sigData[sigIndex])) {
sigIndex += 1;
}
Expand Down
2 changes: 1 addition & 1 deletion runtime/verbose/errormessagehelper.c
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ mapDataTypeToUTF8String(J9UTF8Ref* dataType, StackMapFrame* stackMapFrame, Metho
dataType->bytes = methodInfo->signature.bytes + typeValue;
dataType->length = typeLength;
/* Ignore 'L' and ';' to get the full string of argument in signature */
if (IS_REF_OR_VAL_SIGNATURE(*dataType->bytes)) {
if (IS_CLASS_SIGNATURE(*dataType->bytes)) {
dataType->bytes += 1;
dataType->length -= 2;
}
Expand Down
2 changes: 1 addition & 1 deletion runtime/verutil/sigverify.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ checkSignatureInlined (U_8* signatureBytes, UDATA signatureLength, UDATA *curren
}
}

if (IS_REF_OR_VAL_SIGNATURE(*cursor)) {
if (IS_CLASS_SIGNATURE(*cursor)) {
IDATA bytesConsumed = 0;

cursor += 1; /* skip the 'L' */
Expand Down
2 changes: 1 addition & 1 deletion runtime/vm/classsupport.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ internalFindArrayClass(J9VMThread* vmThread, J9Module *j9module, UDATA arity, U_
/* the first level of arity is already present in the array class */
arity -= 1;

} else if (IS_REF_OR_VAL_SIGNATURE(firstChar) && lastChar == ';') {
} else if (IS_CLASS_SIGNATURE(firstChar) && lastChar == ';') {

name += arity + 1; /* 1 for 'L' */
length -= arity + 2; /* 2 for 'L and ';' */
Expand Down
2 changes: 1 addition & 1 deletion runtime/vm/extendedMessageNPE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ convertMethodSignature(J9VMThread *vmThread, J9UTF8 *methodSig)
i += 1;
}
const char *elementType = NULL;
if (IS_REF_OR_VAL_SIGNATURE(string[i])) {
if (IS_CLASS_SIGNATURE(string[i])) {
i += 1;

UDATA objSize = 0;
Expand Down
2 changes: 1 addition & 1 deletion runtime/vm/jnicsup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ UDATA JNICALL pushArguments(J9VMThread *vmThread, J9Method* method, void *args)
break;
case ')':
vmThread->sp = sp;
return (IS_REF_OR_VAL_SIGNATURE(*sigChar) || *sigChar == '[') ? J9_SSF_RETURNS_OBJECT : 0;
return (IS_CLASS_SIGNATURE(*sigChar) || *sigChar == '[') ? J9_SSF_RETURNS_OBJECT : 0;
}
}
}
Expand Down
Loading