Marc Knaup
12/06/2018, 12:21 AM/**
* JVM internal name of the class, where package names are separated by '/', and class names are separated by '$',
* for example: `"org/foo/bar/Baz$Nested"`
*/
val ClassName.jvmInternalName: String
get() =
if (this.isLocal) substring(1)
else replace('/', '$')
Isn't it supposed to replace .
with $
, not /
with $
?gildor
12/06/2018, 2:22 AM/
, not .
like in source code. You can open any bytecode and check
java.lang.String
becomes java/lang/String
ilya.gorbunov
12/06/2018, 3:18 PMMarc Knaup
12/06/2018, 5:50 PM