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

Commit

Permalink
bug fixed for #3040
Browse files Browse the repository at this point in the history
  • Loading branch information
wenshao committed Mar 1, 2020
1 parent 6e53cca commit 1bdc999
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/alibaba/fastjson/util/JavaBeanInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ public static JavaBeanInfo build(Class<?> clazz //
String[] lookupParameterNames = null;
if (types.length > 0) {
Annotation[][] paramAnnotationArrays = TypeUtils.getParameterAnnotations(creatorConstructor);
for (int i = 0; i < types.length; ++i) {
for (int i = 0; i < types.length && i < paramAnnotationArrays.length; ++i) {
Annotation[] paramAnnotations = paramAnnotationArrays[i];
JSONField fieldAnnotation = null;
for (Annotation paramAnnotation : paramAnnotations) {
Expand Down

0 comments on commit 1bdc999

Please sign in to comment.