hello, I have a question which java bytecode does ...
# android
m
hello, I have a question which java bytecode does kotlin compiler targets per default? java 6? does it make the compiler faster if I say I target java 8? with
Copy code
compileKotlin {
    kotlinOptions {
        jvmTarget = "1.8"
    }
}
our android app supports min android SDK 21
g
Java 6 by default
No it will not be faster, I don’t know any potential improvement 6 vs 8
also SDK 21 doesn’t support any Java 8 features (neither bytecode level nor library level)
k
java version also doesn't matter unless you use specific features that require SDK24 like default interface methods in Java. Doesn't affect Kotlin at all though.
g
With sdk24 and java you also can use @JvmDefault annotation, but this make sense only for compatibility with some java code usually useful only for libraries and java interop