Skip to content
Browse files

[FIXED JENKINS-23127] Allow loading classes from plugins.

(cherry picked from commit 9568986)
  • Loading branch information
KostyaSha authored and olivergondza committed Jul 2, 2014
1 parent 4f89f98 commit afe7da541642e40d60982d459e2802ae81357e34
@@ -46,7 +46,7 @@ public boolean configure(StaplerRequest req, JSONObject json) throws hudson.mode
final JSONObject strategyObject = optJSONObject.getJSONObject("namingStrategy");
final String className = strategyObject.getString("stapler-class");
try {
Class clazz = Class.forName(className);
Class clazz = Class.forName(className, true, Jenkins.getInstance().getPluginManager().uberClassLoader);
final ProjectNamingStrategy strategy = (ProjectNamingStrategy) req.bindJSON(clazz, strategyObject);
} catch (ClassNotFoundException e) {

0 comments on commit afe7da5

Please sign in to comment.
You can’t perform that action at this time.