Merge pull request #10353 from tamasvajk/kotlin-fix-not-implemented

Kotlin: Catch exception thrown by kotlinc
This commit is contained in:
Ian Lynagh
2022-09-21 13:05:41 +01:00
committed by GitHub
2 changed files with 13 additions and 6 deletions

View File

@@ -101,8 +101,15 @@ open class KotlinFileExtractor(
if (d.isFakeOverride) {
return true
}
if ((d as? IrFunction)?.descriptor?.isHiddenToOvercomeSignatureClash == true) {
return true
try {
if ((d as? IrFunction)?.descriptor?.isHiddenToOvercomeSignatureClash == true) {
return true
}
}
catch (e: NotImplementedError) {
// `org.jetbrains.kotlin.ir.descriptors.IrBasedClassConstructorDescriptor.isHiddenToOvercomeSignatureClash` throws the exception
logger.warnElement("Couldn't query if element is fake, deciding it's not.", d, e)
return false
}
return false
}