-
Notifications
You must be signed in to change notification settings - Fork 506
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
ktlint exception when using java 9 #152
Comments
#153 merged in but there are still couple of things that need to be fixed before this ticket can be closed: $ ktlint --version
null and $ ktlint
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jetbrains.kotlin.com.intellij.util.text.StringFactory (file:/tmp/ktlint/ktlint/target/ktlint) to constructor java.lang.String(char[],boolean)
WARNING: Please consider reporting this to the maintainers of org.jetbrains.kotlin.com.intellij.util.text.StringFactory
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release + verify together with maven/gradle. |
The exception and the version showing have been fixed. What’s remaining is the illegal reflective access. This is a Kotlin compiler that has already been resolved upstream KT-19051 and will land when Kotlin 1.2.30 is released. @shyiko do you have any plans for a release that is compatible with java 9? |
@ifrins as soon as Kotlin 1.2.30 is out |
Note: build hangs with Java 9, to hopefully be fixed soon. See: pinterest/ktlint#152.
UPDATE: 0.16.0 released with @ifrins fixes included (thank you once again, Francesc!). [email protected] hasn't been released yet so "An illegal reflective access operation has occurred" warning is still printed (to stderr) but other than that it appears to be working. |
[email protected] with [email protected] is out. Java 9 support is now official. Thanks everyone 🙇♂️ |
what about jdk 11? |
Using ktlint from brew, version 0.15.0. Works fine on Java 8, switched to Java 9 using jenv and get the following error.
Command is simply:
ktlint
The text was updated successfully, but these errors were encountered: