[
https://issues.apache.org/jira/browse/OWB-1099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15061809#comment-15061809
]
Antonin Stefanutti edited comment on OWB-1099 at 12/17/15 9:56 AM:
-------------------------------------------------------------------
Hi Mark, thanks for the quick reply.
I initially used the native annotated as key as you suggest. However, for
annotated fields and methods, the annotated instances provided by OpenWebBeans
in the {{ProcessInjectionTarget}} / {{ProcessProducer}} events are not the same
as the ones provided in the corresponding {{ProcessBean}} events. Hence my
wrapper thing that does the logical comparison.
Note that for annotated types, the provided annotated instances are physically
the same.
I realise I may have jump to the implementation solution too early in my
description as maybe the proper solution is to have a consistent behaviour
across annotated types, fields and methods. (And I realise my original
description is a bit short as well. Sorry about that :()
was (Author: antonin.stefanutti):
Hi Mark, thanks for the quick reply.
I initially used the native annotated as key as you suggest. However, for
annotated fields and methods, the annotated instances provided by OpenWebBeans
in the {{ProcessInjectionTarget}} / {{ProcessProducer}} events are not the same
as the ones provided in the corresponding {{ProcessBean}} events. Hence my
wrapper thing that does the logical comparison.
Note that for annotated types, the provided annotated instances are physically
the same.
I realise I may have jump to the implementation solution too early in my
description as maybe the proper solution is to have a consistent behaviour
across annotated types, fields and methods.
> Annotated SPI implementations do not override equals and hashCode
> -----------------------------------------------------------------
>
> Key: OWB-1099
> URL: https://issues.apache.org/jira/browse/OWB-1099
> Project: OpenWebBeans
> Issue Type: Bug
> Affects Versions: 1.6.2
> Reporter: Antonin Stefanutti
> Assignee: Mark Struberg
>
> The implementations of the {{Annotated}} SPIs do not override {{equals}} and
> {{hashCode}}.
> This prevents from looking up bean definitions by annotated elements which is
> often required when developing CDI extensions.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)