[
https://issues.apache.org/jira/browse/OWB-1033?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14291911#comment-14291911
]
Antoine Sabot-Durand commented on OWB-1033:
-------------------------------------------
After further testing this error doesn't occur when the code is executed with
JDK 1.7 and start to appear for JDK 8U20 and later.
It seems linked to this java evolution
http://bugs.java.com/bugdatabase/view_bug.do?bug_id=8029674 or something new
introduced in JDK 8U20.
> ProcessBeanAttributes doesn't return the right Annotated
> --------------------------------------------------------
>
> Key: OWB-1033
> URL: https://issues.apache.org/jira/browse/OWB-1033
> Project: OpenWebBeans
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.5.0
> Reporter: Antoine Sabot-Durand
> Assignee: Reinhard Sandtner
> Fix For: 1.5.0
>
>
> (Bug observed on snapshot 1.5.0-20150109.083011-43 in the Apache Snapshot
> repo).
> When observing {{ProcessBeanAttributes}} for a producer method
> {{ProcessBeanAttributes#getAnnotated()}} returns the {{AnnotatedType}} of the
> bean containing the producer method not the {{AnnotatedMember}} corresponding
> to the producer.
> CDI 1.1+ spec states in the
> [ProcessBeanAttributes|http://docs.jboss.org/cdi/spec/1.2/cdi-spec.html#process_bean_attributes]
> section :
> {quote}
> getAnnotated() returns the AnnotatedType representing the managed bean class
> or session bean class, the AnnotatedMethod representing the producer field,
> or the AnnotatedField representing the producer field.
> {quote}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)