Is this class created from Kotlin source code?
# announcements
a
Is this class created from Kotlin source code?
d
Yes, it is.
a
That's odd, just tried it local & seems to work fine. Anything unusual about the class?
d
After compilation it is processed by proguard.
a
Is that doing a form of obfuscation? Might be v difficult to decompile that
d
Yes. If I opt to keep annotations, I get the result mentioned above. Otherwise, the class is decompiled as a regular java class
a
You could try asking the question on #C0B8H786P & see if anyone from JetBrains can assist.
d
thanks
@andyb could you, please, try to decompile this class with IDEA? https://drive.google.com/file/d/1aSeWHZqgF7XIoe91cD4mRtdSgzYu2I6h/view?usp=sharing
originally it is just
Copy code
fun main(args: Array<String>) {
    println("hello")
}
but my idea shows
Copy code
// IntelliJ API Decompiler stub source generated from a class file
// Implementation of methods is not available

public fun main(args: kotlin.Array<kotlin.String>): kotlin.Unit { /* compiled code */ }
a
I get
Copy code
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;

@Metadata(
   mv = {1, 1, 9},
   bv = {1, 0, 2},
   k = 2,
   d1 = {"\u0000\u0014\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u0011\n\u0002\u0010\u000e\n\u0002\b\u0002\u001a\u0019\u0010\u0000\u001a\u00020\u00012\f\u0010\u0002\u001a\b\u0012\u0004\u0012\u00020\u00040\u0003¢\u0006\u0002\u0010\u0005¨\u0006\u0006"},
   d2 = {"main", "", "args", "", "", "([Ljava/lang/String;)V", "untitled1"}
)
public final class ApplicationKt {
   public static final void main(@NotNull String[] args) {
      Intrinsics.checkParameterIsNotNull(args, "args");
      String var1 = "hello";
      System.out.println(var1);
   }
}
d
great. may I ask what your IDEA and kotlin plugin version are?
a
IntelliJ IDEA 2017.3.4 (Community Edition) Build #IC-173.4548.28, built on January 29, 2018 JRE: 1.8.0_152-release-1024-b11 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Windows 10 10.0 Kotlin version 1.2.31-IJ2017.3-1
d
thanks again
a
no probs, good luck