Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
spring-projects-issues opened this issue Jan 24, 2017 · 1 comment
Closed

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

spring-projects-issues opened this issue Jan 24, 2017 · 1 comment
Assignees
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Jan 24, 2017

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:

  • #19667 Upgrade to Kotlin 1.1-beta

Referenced from: commits 692e432

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Feb 3, 2017

Sébastien Deleuze commented

With latest Kotlin Beta 2, the latest blocker for that is to be able to generate Java 8 bytecode with Kotlin Script, Ilya Chernikov from Kotlin team is aware of this issue and will try to provide a fix before 1.1 GA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants