From abf3f4e986223cddf204785807a5a278b5f701a1 Mon Sep 17 00:00:00 2001 From: jbachorik Date: Sun, 26 Aug 2018 20:16:16 +0200 Subject: [PATCH] Make loading external classes more robust. Fixes #349 --- src/share/classes/com/sun/btrace/runtime/ClassInfo.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/share/classes/com/sun/btrace/runtime/ClassInfo.java b/src/share/classes/com/sun/btrace/runtime/ClassInfo.java index 1408a7114..bd6642089 100644 --- a/src/share/classes/com/sun/btrace/runtime/ClassInfo.java +++ b/src/share/classes/com/sun/btrace/runtime/ClassInfo.java @@ -281,7 +281,8 @@ private void loadExternalClass(final ClassLoader cl, final ClassName className) } } } - } catch (IOException e) { + } catch (IllegalArgumentException | IOException e) { + DebugSupport.warning("Unable to load class: " + className); DebugSupport.warning(e); } }