1 Reply Latest reply on Sep 29, 2016 2:13 PM by bmajsak

    Java 8 Bug still present in 1.1.11.Final

    cthorburn8

      Could not raise an issue in  the bug tracker so though someone might want a heads up on this anyway...

       

      In my JUnit test, I use Java 8 "Runnable" lambda expression to run the main body of my JPA test so - to avoid having to

      implement full blown AOP around advice. If I do this then EntityManager is not injected!

       

      If I use a non Java 8 idiom - anonymous inner Runnable instead of the lambda it is injected.

      Debug breakpoint shows that the injection is null before any lambda code is executed