You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Mark Struberg (JIRA)" <ji...@apache.org> on 2011/08/29 20:10:38 UTC
[jira] [Resolved] (OWB-563) producers of passivating beans fail
when the declared return type is not serializable but the actual return
type is
[ https://issues.apache.org/jira/browse/OWB-563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Struberg resolved OWB-563.
-------------------------------
Resolution: Not A Problem
Fix Version/s: 1.1.1
Assignee: Mark Struberg (was: Gurkan Erdogdu)
It's certainly not a perfect situation, but this is not a bug according to the CDI-1.0 spec.
> producers of passivating beans fail when the declared return type is not serializable but the actual return type is
> -------------------------------------------------------------------------------------------------------------------
>
> Key: OWB-563
> URL: https://issues.apache.org/jira/browse/OWB-563
> Project: OpenWebBeans
> Issue Type: Bug
> Components: Context and Scopes
> Affects Versions: 1.1.0
> Reporter: George Sapountzis
> Assignee: Mark Struberg
> Fix For: 1.1.1
>
>
> The following case fails at runtime with "produce return type must be Serializable":
> public class MBean implements MInterface, Serializable {
> }
> public class MBeanProducer {
> @Produces @ConversationScoped
> public MInterface produce() {
> return new MBean();
> }
> }
> I don't know what the spec says but maybe owb should check the actual return type and allow this case.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira