Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-562

non-enabled alternative beans with passivating scope fail validation during deployment

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.0
    • 1.1.2
    • Context and Scopes
    • None

    Description

      Declare a bean as:

      @Alternative
      @ConversationScoped
      public class MBean implements Serializable {
      }

      Deployment fails during validating MBean.

      Change the bean to:

      @Typed()
      @ConversationScoped
      public class MBean implements Serializable {
      }

      Deployment succeeds.

      It seems that non-enabled alternative beans are correctly ignored during bean scanning, but not ignored during validation. The metadata is not there and validation fails.

      Attachments

        Activity

          People

            struberg Mark Struberg
            gsapountzis George Sapountzis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: