3 ms·
Part of the issue is that a lot of libraries target jdk 8 since that's what Android supports.
by fnord123 8y ago
Part of the issue is that a lot of libraries target jdk 8 since that's what Android supports.
- pjmlp 8y agoActually libraries that target Android need to use Java 7, unless they want to constrain their users to API 26+.
- lmm 8y agoIs newer Android fully JVM-8 compatible? It'd be great to be able to start using Scala 2.12 even if it means I have to restrict to new devices only.
- pjmlp 8y agoNot really, a lot of desugering still takes place into DEX bytecodes. Stuff like lambdas take extra memory, because they convert into anonymous innerclasses instead of invokedynamic.
- lmm 8y agoAs far as I'm concerned that's an implementation detail. If I can take arbitrary JVM8 code and run it and expect a correct result then that's a huge improvement for my purposes.