K2: Refine mapping of primitive arrays to JVM descriptor
Earlier, it wasn't really important but after the previous commit when JvmMappedScope semantics has been changed, we erroneously started loading `toCharArray` as a member to String because its jvmDescriptor was computed to "toCharArray()Lkotlin/CharArray", while hardcoded information that prevents it from loading expect "toCharArray()[C" there. ^KT-57694 In progress
This commit is contained in:
committed by
Space Team
parent
2e5b783cc6
commit
e4480a1c52
+6
@@ -24826,6 +24826,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
public void testKt1397() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/jdk/kt1397.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noStringToCharArray.kt")
|
||||
public void testNoStringToCharArray() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/jdk/noStringToCharArray.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
+6
@@ -25336,6 +25336,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
||||
public void testKt1397() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/jdk/kt1397.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noStringToCharArray.kt")
|
||||
public void testNoStringToCharArray() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/jdk/noStringToCharArray.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
+6
@@ -24572,6 +24572,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
public void testKt1397() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/jdk/kt1397.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noStringToCharArray.kt")
|
||||
public void testNoStringToCharArray() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/jdk/noStringToCharArray.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
+6
@@ -24827,6 +24827,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
public void testKt1397() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/jdk/kt1397.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noStringToCharArray.kt")
|
||||
public void testNoStringToCharArray() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/jdk/noStringToCharArray.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
Reference in New Issue
Block a user