You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by al...@apache.org on 2020/01/09 16:35:55 UTC
[camel] branch master updated: CAMEL-14384: Fixed the reflection on
annotation proxy issue
This is an automated email from the ASF dual-hosted git repository.
aldettinger pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new afc6ed9 CAMEL-14384: Fixed the reflection on annotation proxy issue
afc6ed9 is described below
commit afc6ed9c647e1920506065e26498932a4fb697cd
Author: aldettinger <al...@gmail.com>
AuthorDate: Thu Jan 9 17:31:44 2020 +0100
CAMEL-14384: Fixed the reflection on annotation proxy issue
---
.../camel/support/language/DefaultAnnotationExpressionFactory.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/core/camel-support/src/main/java/org/apache/camel/support/language/DefaultAnnotationExpressionFactory.java b/core/camel-support/src/main/java/org/apache/camel/support/language/DefaultAnnotationExpressionFactory.java
index e1c464c..25f5536 100644
--- a/core/camel-support/src/main/java/org/apache/camel/support/language/DefaultAnnotationExpressionFactory.java
+++ b/core/camel-support/src/main/java/org/apache/camel/support/language/DefaultAnnotationExpressionFactory.java
@@ -64,9 +64,9 @@ public class DefaultAnnotationExpressionFactory implements AnnotationExpressionF
* @param methodName The annotation name
* @return The value of the annotation
*/
- protected Object getAnnotationObjectValue(Annotation annotation, String methodName) {
+ protected Object getAnnotationObjectValue(Annotation annotation, String methodName) {
try {
- Method method = annotation.getClass().getMethod(methodName);
+ Method method = annotation.annotationType().getDeclaredMethod(methodName);
Object value = ObjectHelper.invokeMethod(method, annotation);
return value;
} catch (NoSuchMethodException e) {