Skip to content

Generate Java 8 bytecode with Kotlin compiler [SPR-15183] #19749

@spring-projects-issues

Description

@spring-projects-issues

Sébastien Deleuze opened SPR-15183 and commented

Kotlin 1.1 compiler supports generating Java 8 bytecode but generates by default Java 6 bytecode.

It can produces Java 8 bytecode with the following Gradle configuration:

compileKotlin { 
    kotlinOptions.jvmTarget = "1.8" 
} 
compileTestKotlin { 
    kotlinOptions.jvmTarget = "1.8" 
} 

It works flawlessly with Gradle but generate some errors in IDEA with default configuration. This should be fixed by KT-15819 so I prefer to wait a new Kotlin 1.1 build that fixes this issue before fixing this issue.


Issue Links:

Referenced from: commits 692e432

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions