| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
If JRuby is loaded in the bootstrap classloader, the direct getClassLoader for a Class object might return null. Use the alternative Ruby.getClassLoader instead which will fall back on the standard system classloader.
This adds a simpler path for classloader-based loading of files when we just want to get the system classloader resources shipped with JRuby. This will reduce the chance of someone using an improper classloader (e.g. JRubyLibrary might have loaded the wrong file from a JRubyClassLoader rather than the one shipped with JRuby) or stumbling on to a null classloader (as sometimes happened to the loads from javasupport.Java when running in a bootstrap classloader).
| Back | FazBrowse Home | New Git URL |
If JRuby is loaded in the bootstrap classloader, the direct getClassLoader for a Class object might return null. Use the alternative Ruby.getClassLoader instead which will fall back on the standard system classloader.