From 7a04b4130fae6c01dbc7261cc96fbe988378ced5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sun, 3 Nov 2024 17:29:48 +0100 Subject: [PATCH] Fixed: #2362 Generating error log ExecutionException - InterruptedException log on switching flash/air swc --- CHANGELOG.md | 2 ++ .../src/com/jpexs/decompiler/flash/DecompilerPool.java | 3 +++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fec252796..d0eaf1faf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ All notable changes to this project will be documented in this file. - [#2357] FLA export letterspacing on two character texts - [#2357] FLA export to CS4 and lower - files exceeding 0x7FFF objects limit - [#2357] FLA export to CS4 and lower - speed optimization +- [#2362] Generating error log ExecutionException - InterruptedException log on switching flash/air swc ## [21.1.3] - 2024-10-29 ### Fixed @@ -3645,6 +3646,7 @@ Major version of SWF to XML export changed to 2. [alpha 7]: https://github.com/jindrapetrik/jpexs-decompiler/releases/tag/alpha7 [#2357]: https://www.free-decompiler.com/flash/issues/2357 [#2361]: https://www.free-decompiler.com/flash/issues/2361 +[#2362]: https://www.free-decompiler.com/flash/issues/2362 [#2344]: https://www.free-decompiler.com/flash/issues/2344 [#2348]: https://www.free-decompiler.com/flash/issues/2348 [#2341]: https://www.free-decompiler.com/flash/issues/2341 diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/DecompilerPool.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/DecompilerPool.java index 3c7770bf9..1ae25280d 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/DecompilerPool.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/DecompilerPool.java @@ -276,6 +276,9 @@ public class DecompilerPool { future.cancel(true); throw ex; } catch (ExecutionException ex) { + if (ex.getCause() instanceof InterruptedException) { + throw (InterruptedException) ex.getCause(); + } Logger.getLogger(DecompilerPool.class.getName()).log(Level.SEVERE, null, ex); } finally { List> futures = openableToFutures.get(openable);