From e90d644b999ff908decd3268a367963824a8862b Mon Sep 17 00:00:00 2001 From: "Cloud.Liu" Date: Mon, 29 Nov 2021 13:49:01 +0800 Subject: [PATCH] =?UTF-8?q?DEC-20671=20fix:=20was=E4=B8=8B=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E6=9C=8D=E5=8A=A1=E5=99=A8=E6=95=B0=E6=8D=AE=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/fr/third/springframework/core/MethodParameter.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fine-spring/src/main/java/com/fr/third/springframework/core/MethodParameter.java b/fine-spring/src/main/java/com/fr/third/springframework/core/MethodParameter.java index 4882da0a6..489b18fdc 100644 --- a/fine-spring/src/main/java/com/fr/third/springframework/core/MethodParameter.java +++ b/fine-spring/src/main/java/com/fr/third/springframework/core/MethodParameter.java @@ -503,6 +503,12 @@ public class MethodParameter { */ public Annotation[] getParameterAnnotations() { Annotation[] paramAnns = this.parameterAnnotations; + + // https://work.fineres.com/browse/DEC-20671 IBM WebSphere OpenJ9 JDK + if (this.method != null) { + this.method.getDeclaredAnnotations(); + } + if (paramAnns == null) { Annotation[][] annotationArray = (this.method != null ? this.method.getParameterAnnotations() : this.constructor.getParameterAnnotations());