Answer the question
In order to leave comments, you need to log in
Is there such a Kotlin Decompiler?
Actually there is a JAR file that needs to be decompiled, it is known that it is written in Kotlin.
Decompiling to Java with decompilers like CFR allows you to get code that can be used to partially understand the structure of the program, but no more.
And I want to get the source code that can be corrected, compiled and used in the future.
Are there specialized Kotlin decompilers? And where to get them?
Answer the question
In order to leave comments, you need to log in
I'm not sure exactly, but it seems like jar files are archives that you can open and pull files out of them.
If you want to get the sources, then use the Java decompilers: FernFlower, CFR, etc. As far as I know, at the moment there are no decompilers that produce code in Kotlin.
You just get the functionally equivalent Java code. Exactly the same with .NET languages that decompile to C# (even the dotPeek description says that only C# output is supported, regardless of the source language). Machine languages are decompiled to C. All this has to do with the destruction and expansion of syntactic sugar during compilation of a non-standard language like Kotlin, F# and the like. Machine codes generally become procedural after compilation, no matter what the paradigm is at the beginning, respectively, the C code is also procedural.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question