https://kotlinlang.org logo
#random
Title
# random
g

gabrielfv

09/12/2018, 9:12 PM
I might be wrong, but wouldn't that
private <init>()V
be the private constructor? Why doesn't it show up on the java decompiled version?
g

gildor

09/13/2018, 1:45 AM
Because decompiled java is not accurate and in many cases (not in this one tho) it’s even impossible to restore source
g

gabrielfv

09/13/2018, 3:20 PM
Yeah, I see... Given that the block is basically
Copy code
private MyObj() {
    super();
}
It's pretty curious it fails at that. I think this should be noted since many people will refer to how objects work using the wrong decompiled version (which is what led me to do it manually in the first place)
2 Views