From fee2644203c68d2f17301ec72d089bedece14a9a Mon Sep 17 00:00:00 2001 From: Curtis Rueden Date: Mon, 30 Dec 2019 11:07:02 -0600 Subject: [PATCH] PluginInfo.getIdentifier: do not load the class Fixes scifio/scifio#410. --- src/main/java/org/scijava/plugin/PluginInfo.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/org/scijava/plugin/PluginInfo.java b/src/main/java/org/scijava/plugin/PluginInfo.java index 259e1a2a3..90cf7dac5 100644 --- a/src/main/java/org/scijava/plugin/PluginInfo.java +++ b/src/main/java/org/scijava/plugin/PluginInfo.java @@ -321,12 +321,7 @@ public PT createInstance() throws InstantiableException { @Override public String getIdentifier() { - try { - return "plugin:" + loadClass(); - } - catch (final InstantiableException exc) { - return null; - } + return "plugin:" + getClassName(); } // -- Locatable methods --