[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
Mon May 15 07:43:00 EDT 2017
[ https://issues.jboss.org/browse/ARQ-2047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13406214#comment-13406214 ]
Dipak Pawar edited comment on ARQ-2047 at 5/15/17 7:42 AM:
-----------------------------------------------------------
[~cthorburn8], I have tried to reproduce this issue as per steps mentioned by you. But I couldn't reproduce your mentioned behavior for lambda expression. You can look for my test project [here|https://github.com/dipak-pawar/ARQ-2047-test]
Can you please share your project where this issue is reproducing? Maybe something is missing in my project.
was (Author: dipakpawar231):
[~cthorburn8], I have tried to reproduce this issue as per steps mentioned by you. But I couldn't reproduce your mentioned behavior for lambda expression. You can look for my test project [here|https://github.com/dipak-pawar/ARQ-2047-test]
Can you please try to share your project where this issue is reproducing? Maybe something is missing in my project.
> 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
(v7.2.3#72005)
More information about the arquillian-issues
mailing list