I have just installed java and kotlin.
I installed Java from oracle, and kotlin by brew.
After writing simple hello-world code in kotlin, I keep getting warnings.
I have tried installing an IDE intellij hoping it might fix, but it did not help.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.intellij.openapi.util.JDOMUtil$2 to constructor com.sun.xml.internal.stream.XMLInputFactoryImpl()
WARNING: Please consider reporting this to the maintainers of com.intellij.openapi.util.JDOMUtil$2
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
I have searched online but none of it actually helped.
My java version and kotlin version
java version "12.0.1" 2019-04-16
Java(TM) SE Runtime Environment (build 12.0.1+12)
Java HotSpot(TM) 64-Bit Server VM (build 12.0.1+12, mixed mode, sharing)
Kotlin version 1.3.31-release-197 (JRE 12.0.1+12)