Use of deprecated package facade class


#1

Hi,

When opening some of our classes in IntelliJ IDE, the IDe is giving a warning saying:

This inspection reports usages of pre-M13 Kotlin package facade classes in Kotlin code and offers to replace them with new-style file classes.

Can you please help me to understand this, is it due to some version incompatibility?

Thanks


#2

Looks like you have Java classes calling a Kotlin library through an API which was supported in old milestone versions of Kotlin and will be removed in 1.0. To update the code, press Alt-Enter and select the option to replace with the new package facade.

For more information, please refer to http://blog.jetbrains.com/kotlin/2015/09/kotlin-m13-is-out/ under “New layout of .class files for top-level declarations”.