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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: