Skip to content

Commit a70ecc6

Browse files
committedJun 1, 2018
Revert "setup a convention to boot psych.rb (similar to MRI) wout loading JI"
This reverts commit 98e97ba.
1 parent 5897275 commit a70ecc6

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed
 

‎core/src/main/java/org/jruby/Ruby.java

+5-13
Original file line numberDiff line numberDiff line change
@@ -1761,21 +1761,13 @@ private void initBuiltins() {
17611761
addLazyBuiltin("net/protocol.rb", "net/protocol", "org.jruby.ext.net.protocol.NetProtocolBufferedIOLibrary");
17621762
}
17631763

1764-
addBuiltinIfAllowed("win32ole.jar", (runtime, wrap) -> runtime.getLoadService().require("jruby/win32ole/stub"));
1765-
1766-
addLazyBuiltin("cgi/escape.jar", "cgi/escape", "org.jruby.ext.cgi.escape.CGIEscape");
1767-
1768-
addBuiltinIfAllowed("2.5/psych.jar", (runtime, wrap) -> { // from psych.rb (-> booted by RGs)
1769-
runtime.getLoadService().require("psych_jars");
1770-
final Library library;
1771-
try {
1772-
library = (Library) Class.forName("org.jruby.ext.psych.PsychLibrary", true, runtime.getJRubyClassLoader()).newInstance();
1764+
addBuiltinIfAllowed("win32ole.jar", new Library() {
1765+
public void load(Ruby runtime, boolean wrap) throws IOException {
1766+
runtime.getLoadService().require("jruby/win32ole/stub");
17731767
}
1774-
catch (ClassNotFoundException|InstantiationException|IllegalAccessException ex) {
1775-
Helpers.throwException(ex); throw new AssertionError(); // not reached
1776-
}
1777-
library.load(runtime, false);
17781768
});
1769+
1770+
addLazyBuiltin("cgi/escape.jar", "cgi/escape", "org.jruby.ext.cgi.escape.CGIEscape");
17791771
}
17801772

17811773
private void initRubyKernel() {

0 commit comments

Comments
 (0)