From ae4d0f2bd107461f64cf55e64469cba92ee87198 Mon Sep 17 00:00:00 2001 From: Michael Griffiths Date: Thu, 10 Jan 2019 21:49:46 +0000 Subject: [PATCH] Catch LinkageError when calling Class/forName Fixes clojure-emacs/cider#2562. --- src/orchard/java.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/orchard/java.clj b/src/orchard/java.clj index c59cf248..98e34057 100644 --- a/src/orchard/java.clj +++ b/src/orchard/java.clj @@ -162,7 +162,8 @@ first by name, and then by argument types to list all overloads." [class] (when-let [^Class c (try (Class/forName (str class)) - (catch Exception _))] + (catch Exception _) + (catch LinkageError _))] (let [r (JavaReflector. (.getClassLoader c))] ; for dynamically loaded classes (util/deep-merge (reflect-info (r/reflect c :reflector r)) (source-info class)