From c466179c2ac1293664b7a49df02efe0f065263e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Mart=C3=ADn=20Sotuyo=20Dodero?= Date: Tue, 31 Oct 2017 01:53:03 -0300 Subject: [PATCH] Handle SecurityErrors on bad auxclasspath entries --- .../java/net/sourceforge/pmd/util/ClasspathClassLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmd-core/src/main/java/net/sourceforge/pmd/util/ClasspathClassLoader.java b/pmd-core/src/main/java/net/sourceforge/pmd/util/ClasspathClassLoader.java index fbc8bb88a3..29dfeccfa2 100644 --- a/pmd-core/src/main/java/net/sourceforge/pmd/util/ClasspathClassLoader.java +++ b/pmd-core/src/main/java/net/sourceforge/pmd/util/ClasspathClassLoader.java @@ -105,7 +105,7 @@ public class ClasspathClassLoader extends URLClassLoader { try { // checking local c = findClass(name); - } catch (final ClassNotFoundException e) { + } catch (final ClassNotFoundException | SecurityException e) { // checking parent // This call to loadClass may eventually call findClass again, in case the parent doesn't find anything. c = super.loadClass(name, resolve);