@@ -0,0 +1,1254 @@
+package jadx.tests.integration.loops;%0A%0Aimport static org.junit.jupiter.api.Assertions.assertEquals;%0A%0Aimport java.io.File;%0Aimport java.io.FileOutputStream;%0A%0Aimport org.junit.jupiter.api.Test;%0A%0Aimport jadx.NotYetImplemented;%0Aimport jadx.tests.api.IntegrationTest;%0A%0Apublic class TestBreakInLoop3 extends IntegrationTest %7B%0A%0A%09public static class TestCls %7B%0A%0A%09%09private StringBuilder builder = new StringBuilder();%0A%0A%09%09public void writeMore(String fid) %7B%0A%09%09%09boolean tryMkdir = true;%0A%09%09%09File ff = new File(fid);%0A%09%09%09while (true) %7B%0A%09%09%09%09prt(%221%22);%0A%09%09%09%09try %7B%0A%09%09%09%09%09new FileOutputStream(fid).close();%0A%09%09%09%09%7D catch (Exception ex) %7B%0A%09%09%09%09%09if (tryMkdir) %7B  // On first error, try creating the base dirs.%0A%09%09%09%09%09%09tryMkdir = false;%0A%09%09%09%09%09%09prt(%222%22);%0A%09%09%09%09%09%09continue;%0A%09%09%09%09%09%7D%0A%09%09%09%09%09prt(%223%22);%0A%09%09%09%09%09if (ff.exists()) %7B%0A%09%09%09%09%09%09prt(%224%22);%0A%09%09%09%09%09%7D else %7B%0A%09%09%09%09%09%09prt(%225%22);%0A%09%09%09%09%09%7D%0A%09%09%09%09%09prt(%226%22);%0A%09%09%09%09%7D%0A%09%09%09%09prt(%227%22);%0A%09%09%09%09break;%0A%09%09%09%7D // end of while true, loop to allow retry of fos.write after mkdir%0A%09%09%09prt(%228%22);%0A%09%09%7D // end of writeMore%0A%0A%09%09private void prt(String s) %7B%0A%09%09%09builder.append(s);%0A%09%09%7D%0A%0A%09%09public void check() %7B%0A%09%09%09writeMore(%22%22);%0A%09%09%09assertEquals(%2212135678%22, builder.toString());%0A%09%09%7D%0A%09%7D%0A%0A%09@Test%0A%09@NotYetImplemented%0A%09public void test43() throws Exception %7B%0A%09%09getClassNode(TestCls.class);%0A%09%7D%0A%7D%0A

add test case for #43 (PR #576)