You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2020/01/10 04:13:43 UTC
[camel] branch camel-3.0.x updated: CAMEL-14384: Fixed the
reflection on annotation proxy issue
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-3.0.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-3.0.x by this push:
new 29a1a03 CAMEL-14384: Fixed the reflection on annotation proxy issue
29a1a03 is described below
commit 29a1a03aa2d120d9811bf6035ceb73cde8e185fd
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) {