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

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


    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.0.4.Final, 2.1.0.Alpha1
    • 2.0.3.Final
    • None
    • None

      I have the following session bean

      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.

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