[
https://issues.apache.org/jira/browse/OWB-999?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14121005#comment-14121005
]
Mark Struberg commented on OWB-999:
-----------------------------------
A producer must be in a 'Managed Bean'. And a 'ManagedBean' is a class which
gets scanned by the container.
This was quite mixed up in the 1.0 spec but got clarified in 1.1.
PS; I do think that getBeanClass() returning the owners class in case of a
producer methos is crap. It adds no value and just causes troubles.
> Bean#beanClass is wrongly used as base type for normal scope proxies
> --------------------------------------------------------------------
>
> Key: OWB-999
> URL: https://issues.apache.org/jira/browse/OWB-999
> Project: OpenWebBeans
> Issue Type: Bug
> Affects Versions: 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.2.6
> Reporter: Christian Beikov
> Assignee: Mark Struberg
> Priority: Critical
> Attachments: owb-bug.zip
>
>
> When defining a custom bean with a normal scope, OWB creates a proxy for that
> bean based on the beanClass of the bean. This is wrong since the beanClass
> could be the declaring class of a bean as it is with producers.
> Also the javadoc explicitly states that.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)