do I understand it right? kotlin is compiled in by...
# android
m
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
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
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
Differ features and bytecode. Kotlin compiles to Java 6 bytecode. Used features (required Java stdlib version) depends on your code.
m
shit, so even if google adopt kotlin as offical language, it is still depend on java stdlib means still depend on oracle?
s
google version of java is not dependant on oracle
m
Half of Android depends on Java’s stdlib and does not depend on Oracle.
s
google is reimplementing java apis
m
so why still the lawsuit between google and oracle?
b
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