Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't handle cross method #58

Open
InkerBot opened this issue Apr 22, 2024 · 1 comment
Open

Can't handle cross method #58

InkerBot opened this issue Apr 22, 2024 · 1 comment

Comments

@InkerBot
Copy link

InkerBot commented Apr 22, 2024

with this example jar, obfuscate it with config disable all transform

package test;

public interface Inte {
  int apply(int a);
}
package test;

public class Abst {
  public int apply(int a) {
    return a + 3;
  }
}
package test;

public class Top extends Abst implements Inte {

  public static void main(String[] args) {
    Inte inte = new Top();
    if (inte.apply(3) == 6) {
      System.out.println("success");
    } else {
      System.out.println("failure");
    }
  }
}

SimpleCrossTest.jar.gz

It will crash with

Exception in thread "main" java.lang.AbstractMethodError: Receiver class test.Top does not define or inherit an implementation of the resolved method 'abstract int apply$2137891494(int, int)' of interface test.Inte.
        at test.Top.main(Top.java)

BTW, Gen3Flow can't be disabled maybe another issue

linked #57

Skidfuscator can't put test.Abst#apply test.Inte#apply into one group, may cause by this

@terminalsin
Copy link
Member

Thanks for the comprehensive issue! Will go ahead and fix this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants