File tree 1 file changed +5
-13
lines changed
core/src/main/java/org/jruby
1 file changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -1761,21 +1761,13 @@ private void initBuiltins() {
1761
1761
addLazyBuiltin ("net/protocol.rb" , "net/protocol" , "org.jruby.ext.net.protocol.NetProtocolBufferedIOLibrary" );
1762
1762
}
1763
1763
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" );
1773
1767
}
1774
- catch (ClassNotFoundException |InstantiationException |IllegalAccessException ex ) {
1775
- Helpers .throwException (ex ); throw new AssertionError (); // not reached
1776
- }
1777
- library .load (runtime , false );
1778
1768
});
1769
+
1770
+ addLazyBuiltin ("cgi/escape.jar" , "cgi/escape" , "org.jruby.ext.cgi.escape.CGIEscape" );
1779
1771
}
1780
1772
1781
1773
private void initRubyKernel () {
You can’t perform that action at this time.
0 commit comments