davsclaus commented on code in PR #20375:
URL: https://github.com/apache/camel/pull/20375#discussion_r2613572567
##########
core/camel-util/src/main/java/org/apache/camel/util/AnnotationHelper.java:
##########
@@ -80,7 +80,7 @@ public static boolean hasAnnotation(
if (checkMetaAnnotations) {
for (Annotation a : elem.getAnnotations()) {
for (Annotation meta : a.annotationType().getAnnotations()) {
- if
(meta.annotationType().getName().equals(annotationType.getName())) {
+ if (meta.annotationType() == annotationType) {
Review Comment:
just mind about classloading - could be something about that or just how the
original code was coded. As with osgi then it was more complex and classes from
different osgi bundles may not match like that - though really not sure just a
thought on top of my head today
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]