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

Warn if a managed bean class is annotated as a session bean

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 2.2.1.Final
    • None

      It can happen that a managed bean class has a session bean annotation (e.g. @Stateless) when the class does not satisfy the requirements for the session bean class (see EJB 3.2 spec., 4.9.2 Session Bean Class).

      For example, the following class is a managed bean as it is not public:

      @Stateless
      class Foo {}
      

      However, a warning should be raised by the application server at the first place.

              Unassigned Unassigned
              bafco Matus Abaffy (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: