[arquillian-issues] [JBoss JIRA] (ARQ-2047) Use of Java 8 lambdas by injected class causes injection to fail silently

Dipak Pawar (JIRA) issues at jboss.org
Tue May 16 01:39:00 EDT 2017


     [ https://issues.jboss.org/browse/ARQ-2047?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dipak Pawar reassigned ARQ-2047:
--------------------------------

    Assignee: Dipak Pawar


> Use of Java 8 lambdas by injected class causes injection to fail silently
> -------------------------------------------------------------------------
>
>                 Key: ARQ-2047
>                 URL: https://issues.jboss.org/browse/ARQ-2047
>             Project: Arquillian
>          Issue Type: Feature Request
>          Components: Base Implementation
>    Affects Versions: 1.1.11.Final
>         Environment: Eclipse Neon, Windows
>            Reporter: Colin Thorburn
>            Assignee: Dipak Pawar
>
> Have seen this bug elsewhere marked as resolved but it clearly isn't. 
> To reproduce simply create a Junit 4 Arquiliian test in which EntityManager and UserTransaction fields are annontated for injection. 
> Devise an @Test method contriving the use of (say) Runnable. Call a method in another class using the Runnable as a parameter
> Code using an anonymous inner class idiom; everything works fine. 
> Code it as a lambda  expression and, bizarrely, only the EntityManager is not injected (utx is OK!). No hint of anything awry in the log, no exception thrown, field is simply left null.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the arquillian-issues mailing list