Colin Thorburn created ARQ-2047:
-----------------------------------
Summary: 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
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
(v6.4.11#64026)