Using OpenJDK 11 and SLC I get this error in some source code I would like to use (steal!). Is there any way to get SLC to permit the use of lambda expressions?
B4X:
error: lambda expressions are not supported in -source 7
post(() -> {
^
(use -source 8 or higher to enable lambda expressions)
If you are using Android Studio, as I do, then as I mentioned in this thread, you can simply highlight the "->" sign and then press ALT + ENTER and you get an option to automatically convert Lamda into an Anonymous class. This saves you some time rewriting the code.
Don't know if this is available in Eclipse.
Once you compile the library with Eclipse or Android Studio it is very simple to make it compatible with the current build chain. Just run desugar and it will convert the byte code.