[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
@@ -1,6 +1,4 @@
// TARGET_BACKEND: JVM
// IGNORE_BACKEND_K2: JVM_IR
// Ignore reason: KT-61282
// MODULE: lib
// FILE: CharBuffer.java
@@ -34,6 +32,7 @@ public abstract class CharBuffer implements CharSequence {
// MODULE: main(lib)
// FILE: 1.kt
abstract class KCB : CharBuffer()
fun box(): String {
val cb: CharBuffer = CharBuffer.impl()