Skip to content

Commit

Permalink
let getResource have the same semantic as loadClass for JRubyClassLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
mkristian committed Dec 6, 2014
1 parent 41120f1 commit 5f9ab61
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/src/main/java/org/jruby/util/JRubyClassLoader.java
Expand Up @@ -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.
Expand Down

0 comments on commit 5f9ab61

Please sign in to comment.