[arquillian-issues] [JBoss JIRA] Commented: (ARQ-201) Primitive fields annotated with @Resource are not assigned

Dan Allen (JIRA) jira-events at lists.jboss.org
Sat Jul 17 09:57:53 EDT 2010


    [ https://jira.jboss.org/browse/ARQ-201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12539761#action_12539761 ] 

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

        


More information about the arquillian-issues mailing list