Skip to content

Commit

Permalink
fix override method deserialize error, for issue #2153
Browse files Browse the repository at this point in the history
  • Loading branch information
wenshao committed Jan 5, 2024
1 parent 0e5be77 commit 3e019b6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,8 @@ public boolean sameTo(FieldReader other) {
}

public boolean belongTo(Class clazz) {
return (this.field != null && this.field.getDeclaringClass() == clazz) || (this.method != null && this.method.getDeclaringClass() == clazz);
return (this.field != null && this.field.getDeclaringClass() == clazz)
|| (this.method != null && this.method.getDeclaringClass().isAssignableFrom(clazz));
}

private String getActualFieldName(FieldReader fieldReader) {
Expand Down

0 comments on commit 3e019b6

Please sign in to comment.