[FIR] Create special hidden override for Java signature clash due to rename

This fixes CharBuffer.get resolving to CharBuffer.charAt

#KT-61282 Fixed
This commit is contained in:
Kirill Rakhman
2023-11-10 15:59:40 +01:00
committed by Space Team
parent 528a2d3c62
commit 865b8a4175
25 changed files with 498 additions and 46 deletions
@@ -21682,6 +21682,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
public void testSizeFromKotlinOverriddenInJava() throws Exception {
runTest("compiler/testData/diagnostics/tests/j+k/collectionOverrides/sizeFromKotlinOverriddenInJava.kt");
}
@Test
@TestMetadata("weirdCharBuffers.kt")
public void testWeirdCharBuffers() throws Exception {
runTest("compiler/testData/diagnostics/tests/j+k/collectionOverrides/weirdCharBuffers.kt");
}
}
@Nested
@@ -51721,6 +51721,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo
public void testValuesInsideEnum() throws Exception {
runTest("compiler/testData/codegen/box/specialBuiltins/valuesInsideEnum.kt");
}
@Test
@TestMetadata("weirdCharBuffers.kt")
public void testWeirdCharBuffers() throws Exception {
runTest("compiler/testData/codegen/box/specialBuiltins/weirdCharBuffers.kt");
}
}
@Nested
@@ -21682,6 +21682,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
public void testSizeFromKotlinOverriddenInJava() throws Exception {
runTest("compiler/testData/diagnostics/tests/j+k/collectionOverrides/sizeFromKotlinOverriddenInJava.kt");
}
@Test
@TestMetadata("weirdCharBuffers.kt")
public void testWeirdCharBuffers() throws Exception {
runTest("compiler/testData/diagnostics/tests/j+k/collectionOverrides/weirdCharBuffers.kt");
}
}
@Nested
@@ -51721,6 +51721,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi
public void testValuesInsideEnum() throws Exception {
runTest("compiler/testData/codegen/box/specialBuiltins/valuesInsideEnum.kt");
}
@Test
@TestMetadata("weirdCharBuffers.kt")
public void testWeirdCharBuffers() throws Exception {
runTest("compiler/testData/codegen/box/specialBuiltins/weirdCharBuffers.kt");
}
}
@Nested