https://kotlinlang.org logo
#compiler
Title
# compiler
j

Johann Beleites

07/13/2022, 6:52 AM
Hey everyone. We are using the embedded compiler and just upgraded from 1.6.21 to 1.7.0. All of a sudden, we can't resolve certain types using the binding context, many (all?) of which seem to be coming from the Java standard library (e.g.
java.util.Properties
,
javax.crypto.Cipher
). I've been debugging a little already and found that the new version behaves differently during resolution of imports and 1.7.0 doesn't seem to successfully resolve these types anymore. I haven't been able to pinpoint the exact place where this is caused yet. Can anyone tell me if there is something to watch out for in 1.7.0? Am I missing something?
For anyone facing similar issues: starting with 1.7, if you don't have the
JDK_HOME
compiler configuration set, it will not be inferred by the compiler anymore. So the JDK is missing from the classpath. Setting this property explicitly fixes resolution issues with JDK types.
4 Views