Merge branch '2.7.x'

This commit is contained in:
Moritz Halbritter
2023-01-18 13:50:06 +01:00
3 changed files with 41 additions and 1 deletions

View File

@@ -168,7 +168,7 @@ class TypeElementMembers {
}
private String getAccessorName(String methodName) {
if (this.isRecord) {
if (this.isRecord && this.fields.containsKey(methodName)) {
return methodName;
}
String name;