skylot / jadx

Dex to Java decompiler
Apache License 2.0
41.99k stars 4.9k forks source link

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

Closed pubiqq closed 2 months ago

pubiqq commented 2 months ago

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

```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

I-hate-2FA commented 2 months ago

image

skylot commented 2 months ago

Fixed. Please check latest unstable build.