javadecompiler

How to decompile a Java program successfully?


A Java program works is decompiled by JD-GUI as follows.

Looks like some Classes are missed.

Is there a best way to decompile a Java program without red lines appearing?

ImportTaskTransactionCallback<Integer> tc = new ImportTaskTransactionCallback(this.viewtrackerUpgradeManager, status);
    .
    .
    .

this.viewtrackerUpgradeManager = viewtrackerUpgradeManager;

Thanks for everyone's suggestion, I found the constructor is not completed and fixed it.


Solution

  • The definition of your constructor is simply not, what your code expects. You want to call it like

    ImportTaskTransactionCallback<Integer> tc = new ImportTaskTransactionCallback(this.viewtrackerUpgradeManager, status);
    

    But your defined constructor doesn't match that signature:

    public ImportTaskTransactionCallback(T viewtrackerUpgradeManager)
    

    You probably want to define it like so:

    public ImportTaskTransactionCallback(ViewtrackerUpgradeManager viewtrackerUpgradeManager, T t)