Closed pubiqq closed 2 months ago
JADX WARN: Failed to find 'out' block for switch in B:2:0x0008. Please report as an issue.
```java 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(); } } ```
cca706c
Fixed. Please check latest unstable build.
Relevant log output or stacktrace
Provide sample and class/method full name
Test
```java 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