mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Merge pull request #17769 from igfoo/igfoo/2.1.0-beta2
Kotlin: Fix for 2.1.0-Beta2
This commit is contained in:
@@ -169,11 +169,17 @@ open class KotlinFileExtractor(
|
||||
}
|
||||
|
||||
private fun FunctionDescriptor.tryIsHiddenToOvercomeSignatureClash(d: IrFunction): Boolean {
|
||||
// `org.jetbrains.kotlin.ir.descriptors.IrBasedClassConstructorDescriptor.isHiddenToOvercomeSignatureClash`
|
||||
// throws one exception or other in Kotlin 2, depending on the version.
|
||||
// TODO: We need a replacement for this for Kotlin 2
|
||||
try {
|
||||
return this.isHiddenToOvercomeSignatureClash
|
||||
} catch (e: NotImplementedError) {
|
||||
// `org.jetbrains.kotlin.ir.descriptors.IrBasedClassConstructorDescriptor.isHiddenToOvercomeSignatureClash` throws the exception
|
||||
// TODO: We need a replacement for this for Kotlin 2
|
||||
if (!usesK2) {
|
||||
logger.warnElement("Couldn't query if element is fake, deciding it's not.", d, e)
|
||||
}
|
||||
return false
|
||||
} catch (e: IllegalStateException) {
|
||||
if (!usesK2) {
|
||||
logger.warnElement("Couldn't query if element is fake, deciding it's not.", d, e)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user