Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-1294

Don't inject into static fields/methods

    XMLWordPrintable

Details

    Description

      The Java EE6 spec, section EE.5.2.5 says:

      The field or method may have any access qualifier (public, private, etc.). For all classes except application client
      main classes, the fields or methods must not be static.

      Currently we even inject even into static fields/methods.

      Attachments

        Activity

          People

            emartins@redhat.com Eduardo Martins
            jaikiran Jaikiran Pai (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: