Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

bug fix for updating jdk version. #4463

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
11 changes: 8 additions & 3 deletions src/main/java/com/alibaba/fastjson/util/JavaBeanInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -504,9 +504,14 @@ public static JavaBeanInfo build(Class<?> clazz //
continue;
}

if (creatorConstructor != null
&& paramNames != null && lookupParameterNames.length <= paramNames.length) {
continue;
if (creatorConstructor != null && paramNames != null) {
if (lookupParameterNames.length < paramNames.length) {
continue;
}
if (lookupParameterNames.length == paramNames.length
&& Arrays.hashCode(lookupParameterNames) < Arrays.hashCode(paramNames)) {
continue;
}
}

paramNames = lookupParameterNames;
Expand Down