Live data from Hacker News

Future of Java 8 Language Feature Support on Android

android-developers.googleblog.com

1–10 of 103 posts

Re: Future of Java 8 Language Feature Support on Android

#6
post #4

Sounds like good news to me, but I'm not sure why this is not getting more attention. Isn't Java 8 support a huge deal for Android, or am I missing something?

They already had something called Jack that let you use java>6 features. It just didn't integrate as well with some parts of the android ecosystem

Re: Future of Java 8 Language Feature Support on Android

#7
post #5

This looks to be "language features" only - so, lambdas, but no Java 8 APIs. Optionals, streams, etc are not included. ...I hope they fix IntelliJ's default suggestions, which try to turn all of your loops into `.stream()` calls!

You can turn that on and off in the settings in IntelliJ already, and it only enables that suggestion if you're using a Java 8 JDK.

If it is suggesting it on a correctly configured Android project, I suspect you found a bug.

Re: Future of Java 8 Language Feature Support on Android

#8
post #5

This looks to be "language features" only - so, lambdas, but no Java 8 APIs. Optionals, streams, etc are not included. ...I hope they fix IntelliJ's default suggestions, which try to turn all of your loops into `.stream()` calls!

Just turn them off or use Android Studio, which I believe still has sane defaults. Help file on this: https://www.jetbrains.com/help/idea/2016.3/disabling-and-ena...

Also, if looking for APIs, and willing to risk having to tweak code later, there are a few "polyfills". For example: https://www.google.ca/amp/s/barta.me/enable-java-8-features-...

Re: Future of Java 8 Language Feature Support on Android

#10
The possibility of running Scala >=2.12 (or any other language that is committed to Java 8[1]) on Android seems even more remote now. Jack+Jill at least promised a way of running Java 8 bytecode on Android[2]. What now? Is Java source code going to be the only common currency between the Java 8 and Android ecosystems?

[1] https://www.scala-lang.org/download/#Software_Requirements

[2] http://stackoverflow.com/questions/35958814/how-jack-java-an...

Post reply on HN