https://kotlinlang.org logo
#android
Title
# android
m

mingkangpan

02/17/2017, 12:31 PM
do I understand it right? kotlin is compiled in byte code it is not dependent on the java features version, so in theory kotlin can implement all java 8 features and we android devs can use them?
m

miha-x64

02/17/2017, 12:32 PM
mingkangpan: Kotlin compiles to Java 6 bytecode. But if you use Java 8 features (e. g. streams), the code must be executed in environment which supports them.
m

mingkangpan

02/17/2017, 12:34 PM
so android currently doesnt support java 8 features, so I can't use them, but can kotlin compiles java 8 features to java 6 bytecode?
m

miha-x64

02/17/2017, 12:35 PM
Differ features and bytecode. Kotlin compiles to Java 6 bytecode. Used features (required Java stdlib version) depends on your code.
m

mingkangpan

02/17/2017, 12:37 PM
shit, so even if google adopt kotlin as offical language, it is still depend on java stdlib means still depend on oracle?
s

s.luhmirins

02/17/2017, 12:38 PM
google version of java is not dependant on oracle
m

miha-x64

02/17/2017, 12:38 PM
Half of Android depends on Java’s stdlib and does not depend on Oracle.
s

s.luhmirins

02/17/2017, 12:38 PM
google is reimplementing java apis
m

mingkangpan

02/17/2017, 12:42 PM
so why still the lawsuit between google and oracle?
b

bernhard

02/17/2017, 12:49 PM
exactly because they are using api's "owned" my oracle (that's at least the opinion of oracle) and android/google has no licence for these api's, which they are implementing on their own
because google has the opinion, that these apis are open source and free to use and need no license
2 Views