Skip to content
Permalink
Browse files
let getResource have the same semantic as loadClass for JRubyClassLoader
  • Loading branch information
mkristian committed Dec 6, 2014
1 parent 41120f1 commit 5f9ab6153c47f24ae4b9ac324678719b1bcb55b5
Showing with 7 additions and 0 deletions.
  1. +7 −0 core/src/main/java/org/jruby/util/JRubyClassLoader.java
@@ -134,6 +134,13 @@ public Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundExce
return c;
}
}
public URL getResource( String name ) {
URL resource = findResource(name);
if (resource == null) {
resource = super.getResource(name);
}
return resource;
}

/**
* Called when the parent runtime is torn down.

0 comments on commit 5f9ab61

Please sign in to comment.