From 17a94b7ba2780339db25d0a40c69809556959feb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Mon, 6 Jul 2015 21:52:56 +0200 Subject: [PATCH] Issue #947 Marklevels errors ignored --- .../src/com/jpexs/decompiler/graph/Graph.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/Graph.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/Graph.java index 773623af0..5a7fe4e17 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/Graph.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/Graph.java @@ -817,7 +817,13 @@ public class Graph { } private void getPrecontinues(String path, BaseLocalData localData, GraphPart parent, GraphPart part, List allParts, List loops, List stopPart) throws InterruptedException { - markLevels(path, localData, part, allParts, loops); + try { + markLevels(path, localData, part, allParts, loops); + } catch (InterruptedException iex) { + throw iex; + } catch (Throwable ex) { + //It is unusual code so markLevels failed, nevermind, it can still work + } //Note: this also marks part as precontinue when there is if /* while(k<10){ @@ -880,8 +886,7 @@ public class Graph { stopPart = new ArrayList<>(); } if (recursionLevel > allParts.size() + 1) { - Logger.getLogger(Graph.class.getName()).log(Level.WARNING, "{0} : markLevels max recursion level reached", path); - return; + throw new RuntimeException(path + ": markLevels max recursion level reached"); } if (debugMode) {