mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
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:
parent
7eadf5b372
commit
b8dbdd1232
2 changed files with 8 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue