greenDAO
greenDAO copied to clipboard
Allow Java 8 Lambda and function references within Entity classes
I'm using functional java with retro-lambda in a project, but if an Entity class has non-generated methods that use any of the features it gives build errors such as
Pb(646) Method references are allowed only at source level 1.8 or above Pb(647) Constructor references are allowed only at source level 1.8 or above
My work around if I want to use with lambda or function references is to move those things to a helper class, but this is obviously not ideal.
It seems Android is moving toward supporting Java 8 features as well, so it would be helpful if greenDAO either supported the features natively, or at least allowed user-created methods to use the features.
In a perfect world native support for Optionals would be added as well, but that's probably slightly more niche
Any clue if greenDAO is going to support lambdas?
Technically we only should have to change the greenDAO Gradle Plugin from parsing/generating at level 1.7 (Java 7) to level 1.8 (Java 8). Not sure if any other changes would be required. -ut
Any news on this one?
@VaiTon Not sure. Have you tried with 3.3.0?
@greenrobot-team tried, failed. please add Java 8 Lamda support. Thanks a lot
@greenrobot-team tried, failed. please add Java 8 Lamda support. Thanks a lot
@greenrobot-team Any news on this one?
@greenrobot-team +1