Hey all. I'm trying to have a mixed java/kotlin pr...
# getting-started
p
Hey all. I'm trying to have a mixed java/kotlin project, but I keep getting
"error: cannot find symbol"
messages. I followed what was outlined here: https://kotlinlang.org/docs/mixing-java-kotlin-intellij.html, specifically the steps:
You can also open the Kotlin runtime configuration manually from Tools | Kotlin | Configure Kotlin in Project.
Here is a minimal project to showcase the issue: https://github.com/PratikBhusal/mixed-java-kotlin-library-error-cannot-find-symbol
e
Kotlin value classes are effectively invisible to and unusable by Java code
in your code,
Copy code
@JvmInline
value class PositiveInt(private val value: @Positive Int)
does not create a class with a constructor that can be called by Java. there are box methods, but those aren't accessible either https://youtrack.jetbrains.com/issue/KT-50518