[
https://jira.jboss.org/browse/ARQ-201?page=com.atlassian.jira.plugin.syst...
]
Dan Allen commented on ARQ-201:
-------------------------------
Since it's injection into one of our own components (the test class), I think we
should go with option #2 along with option #3. Set it again, then recommend that they
change it to a wrapper type because Arquillian doesn't know whether the default value
is the real value. I'm also okay with failing outright. What we don't want to do
is just report nothing, because then they think Arquillian is broken.
Primitive fields annotated with @Resource are not assigned
----------------------------------------------------------
Key: ARQ-201
URL:
https://jira.jboss.org/browse/ARQ-201
Project: Arquillian
Issue Type: Bug
Components: Runtime Enricher SPI
Affects Versions: 1.0.0.Alpha2
Reporter: Dan Allen
Assignee: Aslak Knutsen
Priority: Minor
Fix For: 1.0.0.Alpha3
Fields which are not null are skipped when performing @Resource injections. However,
primitive fields are never null and therefore injections do not occur on those fields.
Example:
@Resource(name = "port") int port;
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira