How can I shadow and relocate reflect correctly? I...
# reflect
s
How can I shadow and relocate reflect correctly? I tried relocating the kotlin to kotlin1910. But makes kotlin reflect can't find
kotlin1910.kotlin1910_builtins
. Then, I added custom transformers for avoiding
shadow
relocate the
.kotlin_builtins
constant in kotlin reflect. And relocate the
kotlin/kotlin.kotlin_builtins
to
kotlin1910/kotlin1910.kotlin_builtins
But the reflect can't find the builtin class
AssertionError: Built-in class kotlin1910.Any is not found
1
They are the same one
u
This won't work unfortunately because kotlin-reflect loads resources with predefined names that cannot be changed:
kotlin/kotlin.kotlin_builtins
,
kotlin/collections/collections.kotlin_builtins
, etc.
👀 1