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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.0
    • Fix Version/s: 1.1.2
    • Component/s: Context and Scopes
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: