Gamar Mustafa
11/15/2024, 6:26 AMfun main() {
val number = 300
val serial = 40400
}
when i decompile it to look at the java code, it shows something like this:
public final class MainKt {
public static final void main() {
int number = true;
int serial = 404000;
}
why first variable is true
but the second one has its original value?
additionally, when i make val serial = 40400
, i get this in the java side:
public final class MainKt {
public static final void main() {
int number = true;
int serial = '鷐';
}
can someone explain how actually this decompiling work? what's that character there?Youssef Shoaib [MOD]
11/15/2024, 6:42 AMGamar Mustafa
11/15/2024, 6:53 AMYoussef Shoaib [MOD]
11/15/2024, 7:26 AM/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* kotlin.Metadata
*/
import kotlin.Metadata;
@Metadata(mv={2, 0, 0}, k=2, xi=48, d1={"\u0000\b\n\u0000\n\u0002\u0010\u0002\n\u0000\u001a\u0006\u0010\u0000\u001a\u00020\u0001\u00a8\u0006\u0002"}, d2={"main", "", "library_test"})
public final class FooKt {
public static final void main() {
int number = 300;
int serial = 40400;
}
public static /* synthetic */ void main(String[] args) {
FooKt.main();
}
}
Paulo Cereda
11/15/2024, 8:05 AMGamar Mustafa
11/15/2024, 10:51 AM