Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't fallback to the class loader from the current thread.
  • Loading branch information
chrisseaton committed Feb 1, 2015
1 parent 02bcdfe commit 46e1058
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions core/src/main/java/org/jruby/RubyInstanceConfig.java
Expand Up @@ -1407,13 +1407,7 @@ public void setProfilingService( String service ) {
}

private static ClassLoader setupLoader() {
final ClassLoader thisLoader = RubyInstanceConfig.class.getClassLoader();

if (thisLoader == null) {
return null;
} else {
return Thread.currentThread().getContextClassLoader();
}
return RubyInstanceConfig.class.getClassLoader();
}

////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 46e1058

Please sign in to comment.