Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-6644 Offer quick fixes for CDI validations
  3. JBIDE-7672

Quick fix for "Non-static method <method>() of a session bean class <class> has a parameter annotated @Disposes/@Observes..." error markers

XMLWordPrintable

    • Documentation (Ref Guide, User Guide, etc.)

      This quick fix for next error markers:
      1. Non-static method <method>() of a session bean class <class> has a parameter annotated @Disposes, and the method is not a business method of the session bean [JSR-299 §3.3.6]
      2. Non-static method <method>() of a session bean class <class> has a parameter annotated @Observes, and the method is not a business method of the EJB [JSR-299 §10.4.2]

      Quick fix should make the method a business method of the EJB

      See JBIDE-7669 for details

        1. NonBusinessMethod.ogv
          6.85 MB
          Daniel Azarov
        2. NonBusinessMethodWithDisposerParameter.png
          98 kB
          Daniel Azarov
        3. NonBusinessMethodWithDisposerParameter2.png
          107 kB
          Daniel Azarov
        4. NonBusinessMethodWithObserverParameter.png
          91 kB
          Daniel Azarov
        5. NonBusinessMethodWithObserverParameter2.png
          81 kB
          Daniel Azarov

            dazarov_jira Daniel Azarov (Inactive)
            dazarov_jira Daniel Azarov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: