From da6bcc9d468888f42516511851f215123c60d958 Mon Sep 17 00:00:00 2001 From: Nikolay Krasko Date: Tue, 31 Jul 2018 19:11:54 +0300 Subject: [PATCH] Do not check locations inside synthetic and bridge methods No valid psi declarations can be found for such locations leading to negative rank. --- .../jetbrains/kotlin/idea/debugger/AbstractFileRankingTest.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/AbstractFileRankingTest.kt b/idea/tests/org/jetbrains/kotlin/idea/debugger/AbstractFileRankingTest.kt index b7a61bfef83..4b7082db63b 100644 --- a/idea/tests/org/jetbrains/kotlin/idea/debugger/AbstractFileRankingTest.kt +++ b/idea/tests/org/jetbrains/kotlin/idea/debugger/AbstractFileRankingTest.kt @@ -38,6 +38,8 @@ abstract class AbstractFileRankingTest : LowLevelDebuggerTestBase() { val allFilesWithSameName = getKtFiles(expectedFile.name) for (location in locations) { + if (location.method().isBridge || location.method().isSynthetic) continue + val actualFile = calculator.findMostAppropriateSource(allFilesWithSameName, location) if (actualFile != expectedFile) { problems += "Location ${location.sourceName()}:${location.lineNumber() - 1} is associated with a wrong KtFile:\n" +