8235359: Simplify method Class.getRecordComponents()

Change getRecordComponents0() to return an array of RecordComponent's so no conversion is needed

Reviewed-by: lfoltan, chegar, fparain, vromero, mchung
This commit is contained in:
Harold Seigel 2019-12-06 13:05:25 +00:00
parent 7eadf5b372
commit b8dbdd1232
2 changed files with 8 additions and 10 deletions

View file

@ -51,6 +51,7 @@ extern jboolean VerifyFixClassname(char *utf_name);
#define CTR "Ljava/lang/reflect/Constructor;"
#define PD "Ljava/security/ProtectionDomain;"
#define BA "[B"
#define RC "Ljava/lang/reflect/RecordComponent;"
static JNINativeMethod methods[] = {
{"initClassName", "()" STR, (void *)&JVM_InitClassName},
@ -77,8 +78,8 @@ static JNINativeMethod methods[] = {
{"getRawTypeAnnotations", "()" BA, (void *)&JVM_GetClassTypeAnnotations},
{"getNestHost0", "()" CLS, (void *)&JVM_GetNestHost},
{"getNestMembers0", "()[" CLS, (void *)&JVM_GetNestMembers},
{"getRecordComponents0", "()[" OBJ, (void *)&JVM_GetRecordComponents},
{"isRecord0", "()Z", (void *)&JVM_IsRecord},
{"getRecordComponents0", "()[" RC, (void *)&JVM_GetRecordComponents},
{"isRecord0", "()Z", (void *)&JVM_IsRecord},
};
#undef OBJ