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
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
kenkyee
12/03/2018, 3:51 PM
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
gildor
12/03/2018, 4:22 PM
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