[
https://issues.jboss.org/browse/AS7-1294?page=com.atlassian.jira.plugin.s...
]
David Lloyd commented on AS7-1294:
----------------------------------
Unless, of course it's an app client, in which case we must *always* inject into
static fields. Make sure this check exists at a high enough level so that we don't
prevent it from working for app client.
Don't inject into static fields/methods
---------------------------------------
Key: AS7-1294
URL:
https://issues.jboss.org/browse/AS7-1294
Project: Application Server 7
Issue Type: Bug
Components: EE
Affects Versions: 7.0.0.Final
Reporter: jaikiran pai
Assignee: jaikiran pai
The Java EE6 spec, section EE.5.2.5 says:
{quote}
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.
{quote}
Currently we even inject even into static fields/methods.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira