Skip to content

Commit 278cac0

Browse files
committed
Merge remote-tracking branch 'origin/10.1-dev'
2 parents a3180b4 + e32fac3 commit 278cac0

6 files changed

Lines changed: 24 additions & 25 deletions

File tree

core/src/main/java/org/jruby/ext/bigdecimal/BigDecimalLibrary.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ public void load(Ruby runtime, boolean wrap) throws IOException {
4343
RubyBigDecimal.createBigDecimal(context);
4444

4545
// using load since this file does not exist in MRI
46-
loadService(context).load("jruby/bigdecimal.rb", false);
46+
loadService(context).loadFromClassLoader(Ruby.class.getClassLoader(), "jruby/bigdecimal.rb", false);
4747
}
4848
}// BigDecimalLibrary

core/src/main/java/org/jruby/javasupport/Java.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public void load(Ruby runtime, boolean wrap) {
139139
RubyClass objectClass = (RubyClass) getProxyClass(context, java.lang.Object.class);
140140

141141
// load Ruby parts of the 'java' library
142-
loadService(context).load("jruby/java.rb", false);
142+
loadService(context).loadFromClassLoader(Ruby.class.getClassLoader(), "jruby/java.rb", false);
143143

144144
// rewire ArrayJavaProxy superclass to point at Object, so it inherits Object behaviors
145145
Access.getClass(context, "ArrayJavaProxy").

core/src/main/ruby/jruby/java.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@
3434
###### END LICENSE BLOCK ######
3535

3636
# These are loads so they don't pollute LOADED_FEATURES
37-
load 'jruby/java/core_ext.rb'
38-
load 'jruby/java/java_ext.rb'
37+
load 'uri:classloader:jruby/java/core_ext.rb'
38+
load 'uri:classloader:jruby/java/java_ext.rb'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Extensions to Ruby classes
22

33
# These are loads so they don't pollute LOADED_FEATURES
4-
load 'jruby/java/core_ext/object.rb'
4+
load 'uri:classloader:jruby/java/core_ext/object.rb'

core/src/main/ruby/jruby/kernel.rb

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,27 @@ module JRuby
77

88
begin
99
# Try to access ProcessBuilder; if it fails, don't define our special process logic
10-
load 'jruby/kernel/jruby/process_manager.rb'
10+
load 'uri:classloader:jruby/kernel/jruby/process_manager.rb'
1111
rescue Exception # java.lang.ProcessBuilder not available
1212
warn "ProcessBuilder unavailable; using default backtick" if $VERBOSE
1313
JRuby.send(:remove_const, :ProcessManager) rescue nil
1414
# leave old backtick logic in place
1515
end unless JRuby::Util.native_posix? # native POSIX uses new logic for back-quote
1616

1717
# These are loads so they don't pollute LOADED_FEATURES
18-
load 'jruby/kernel/signal.rb'
19-
load 'jruby/kernel/kernel.rb'
20-
load 'jruby/kernel/proc.rb'
21-
load 'jruby/kernel/process.rb'
22-
load 'jruby/kernel/enumerator.rb'
23-
load 'jruby/kernel/enumerable.rb'
24-
load 'jruby/kernel/io.rb'
25-
load 'jruby/kernel/gc.rb'
26-
load 'jruby/kernel/range.rb'
27-
load 'jruby/kernel/file.rb'
28-
load 'jruby/kernel/method.rb'
29-
load 'jruby/kernel/thread.rb'
30-
load 'jruby/kernel/integer.rb'
31-
load 'jruby/kernel/time.rb'
32-
load 'jruby/kernel/set.rb'
33-
load 'jruby/kernel/string.rb'
34-
load 'jruby/kernel/pathname.rb'
18+
load 'uri:classloader:jruby/kernel/signal.rb'
19+
load 'uri:classloader:jruby/kernel/kernel.rb'
20+
load 'uri:classloader:jruby/kernel/proc.rb'
21+
load 'uri:classloader:jruby/kernel/process.rb'
22+
load 'uri:classloader:jruby/kernel/enumerator.rb'
23+
load 'uri:classloader:jruby/kernel/enumerable.rb'
24+
load 'uri:classloader:jruby/kernel/io.rb'
25+
load 'uri:classloader:jruby/kernel/gc.rb'
26+
load 'uri:classloader:jruby/kernel/range.rb'
27+
load 'uri:classloader:jruby/kernel/file.rb'
28+
load 'uri:classloader:jruby/kernel/method.rb'
29+
load 'uri:classloader:jruby/kernel/thread.rb'
30+
load 'uri:classloader:jruby/kernel/integer.rb'
31+
load 'uri:classloader:jruby/kernel/time.rb'
32+
load 'uri:classloader:jruby/kernel/string.rb'
33+
load 'uri:classloader:jruby/kernel/pathname.rb'
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Load preludes
2-
load 'jruby/kernel/prelude.rb'
3-
load 'jruby/kernel/gem_prelude.rb'
2+
load 'uri:classloader:/jruby/kernel/prelude.rb'
3+
load 'uri:classloader:/jruby/kernel/gem_prelude.rb'

0 commit comments

Comments
 (0)