Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-1473

Incorrect bean types for a session bean with a superclass implementing an interface

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Done
    • 2.0.3.Final
    • 2.0.4.Final, 2.1.0.Alpha1
    • None
    • None

    Description

      I have the following session bean

      @Stateless
      public class MockLoginActionBean extends LoginActionBean { }
      
      its superclass
      

      public class LoginActionBean implements LoginAction { }

      and an interface
      

      public interface LoginAction { }

      
      

      According to the spec., the bean types of an instance of a MockLoginActionBean should only be Object, MockLoginActionBean and LoginActionBean, however also LoginAction is contained in the set returned by javax.enterprise.inject.spi.BeanAttributes.getTypes(). This holds whether the superclass (LoginActionBean) is a session bean or not, even if the interface LoginAction is annotated @Remote or @Local.

      Attachments

        Issue Links

          Activity

            People

              maxmil_jira Max Pimm (Inactive)
              bafco Matus Abaffy (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: