openwebbeans-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "George Sapountzis (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OWB-563) producers of passivating beans fail validation when the declared return type is not serializable but the actual return type is
Date Sun, 10 Apr 2011 08:06:05 GMT
producers of passivating beans fail validation 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: Gurkan Erdogdu


The following case fails during deployment:

public interface MSerializableInterface extends MInterface, Serializable {
}

public class MBean implements MSerializableInterface {
}

public class MBeanProducer {

  @Produces @ConversationScoped
  public MInterface produce() { 
    return new MBean();
  }
}

I don't know what the spec says and whether such a case can be identified statically but maybe
it should be allowed.


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message