mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-11 19:16:42 +00:00
Fixed a bug where non-existent optional dependencies can result in a cascading load failure.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@36213 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
f00efb4b44
commit
11bcb9f59f
1 file changed
+5
@@ -157,6 +157,11 @@ public abstract class ExtensionFinder implements ExtensionPoint {
|
||||
if(instance!=null)
|
||||
result.add(new ExtensionComponent<T>(type.cast(instance),item.annotation()));
|
||||
}
|
||||
} catch (LinkageError e) {
|
||||
// sometimes the instantiation fails in an indirect classloading failure,
|
||||
// which results in a LinkageError
|
||||
LOGGER.log(item.annotation().optional() ? Level.FINE : Level.WARNING,
|
||||
"Failed to load "+item.className(), e);
|
||||
} catch (InstantiationException e) {
|
||||
LOGGER.log(item.annotation().optional() ? Level.FINE : Level.WARNING,
|
||||
"Failed to load "+item.className(), e);
|
||||
|
||||
Reference in new issue
Block a user