5 ms·
Anyone know what Google is going to do about Java 8 compatibility on Android? Not being able to adopt lambdas on mobile is a bummer.
by melling 13y ago
Anyone know what Google is going to do about Java 8 compatibility on Android? Not being able to adopt lambdas on mobile is a bummer.
- masklinn 13y agoAFAIK they still don't support all of Java 7 so...
- jug6ernaut 13y agoThey support "parts" of java7, but not everything.
- chwahoo 13y agoMaybe worth a look for you: https://github.com/orfjackal/retrolambda https://github.com/orfjackal/retrolambda
- mihn 13y agoApparently Android is not using Java, but something that looks like Java. I bet Google vs. Oracle trial can be attributed to that. :)
- octopus 13y agoActually they use Java the language, except that the code doesn't run on JVM but on a different VM (Dalvik at this time). Dalvik supports Java 6 and parts from Java 7.
- general_failure 13y agoDalvik is dead. Art is the new king
- octopus 13y agoMaybe in the future, I doubt anyone, except Android developers, even knows about Art. Art is still experimental and not enabled by default.
- ZoFreX 13y agoThey added support for try-with-resources in KitKat, maybe they will continue to add support for new Java features in newer versions?
- jayd16 13y agoYou can use most of Java 7 but not the new dynamic stuff. I'm told that lamdas will require this feature so we won't be getting that for a while. This is total speculation, but they're also moving away from the DalvikVM to the new ART runtime. I'm hoping that they're keeping Java 8 in mind as that gets implemented.