Skip to content
New issue

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

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

Already on GitHub? # to your account

[core] Incorrect constructor generation for inner classes #2253

Closed
pubiqq opened this issue Aug 16, 2024 · 1 comment
Closed

[core] Incorrect constructor generation for inner classes #2253

pubiqq opened this issue Aug 16, 2024 · 1 comment
Labels
bug Core Issues in jadx-core module

Comments

@pubiqq
Copy link
Contributor

pubiqq commented Aug 16, 2024

Provide sample and class/method full name

Test

package jadx.tests.integration.inner;

import jadx.tests.api.IntegrationTest;
import jadx.tests.api.utils.assertj.JadxAssertions;
import org.junit.jupiter.api.Test;

public class TestInnerConstructorCall extends IntegrationTest {

  public static class TestCls {

    @SuppressWarnings("InnerClassMayBeStatic")
    public class A {
      public class AA {
        public void test() {
        }
      }
    }

    public void test() {
      A a = new A();
      A.AA aa = a.new AA();
      aa.test();
    }
  }

  @Test
  public void test() {
    JadxAssertions.assertThat(getClassNode(TestCls.class))
        .code();
  }
}

Jadx version

1.5.0

@pubiqq pubiqq added bug Core Issues in jadx-core module labels Aug 16, 2024
@skylot
Copy link
Owner

skylot commented Sep 21, 2024

Fixed.
Thanks for test case 👍

@skylot skylot closed this as completed Sep 21, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Core Issues in jadx-core module
Projects
None yet
Development

No branches or pull requests

2 participants