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

[core] JADX WARN: Failed to find 'out' block for switch #2264

Open
pubiqq opened this issue Sep 3, 2024 · 0 comments
Open

[core] JADX WARN: Failed to find 'out' block for switch #2264

pubiqq opened this issue Sep 3, 2024 · 0 comments
Labels
bug Core Issues in jadx-core module
Milestone

Comments

@pubiqq
Copy link
Contributor

pubiqq commented Sep 3, 2024

Relevant log output or stacktrace

JADX WARN: Failed to find 'out' block for switch in B:2:0x0008. Please report as an issue.

Provide sample and class/method full name

Test

package jadx.tests.integration.switches;

import jadx.tests.api.IntegrationTest;
import org.junit.jupiter.api.Test;

import static jadx.tests.api.utils.assertj.JadxAssertions.assertThat;

public class TestSwitch4 extends IntegrationTest {

  public static class TestCls {

    @SuppressWarnings("unused")
    private static int parse(char[] ch, int off, int len)
    {
      int num = ch[off + len - 1] - '0';

      switch (len) {
        case 4:
          num += (ch[off++] - '0') * 1000;
        case 3:
          num += (ch[off++] - '0') * 100;
        case 2:
          num += (ch[off] - '0') * 10;
      }
      return num;
    }
  }

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

Jadx version

cca706c

@pubiqq pubiqq added bug Core Issues in jadx-core module labels Sep 3, 2024
@skylot skylot added this to the TBD milestone Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Core Issues in jadx-core module
Projects
None yet
Development

No branches or pull requests

2 participants