Skip to content

Commit f5d1f9b

Browse files
committed
Remove .jar.rb extension from load search.
1 parent d6810e9 commit f5d1f9b

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

core/src/main/java/org/jruby/runtime/load/LoadService.java

+1-14
Original file line numberDiff line numberDiff line change
@@ -149,23 +149,10 @@ public enum SuffixType {
149149
// NOTE: always search .rb first for speed
150150
public static final String[] sourceSuffixes =
151151
Options.AOT_LOADCLASSES.load() ? arrayOf(".rb", ".class") : arrayOf(".rb");
152-
public static final String[] extensionSuffixes;
152+
public static final String[] extensionSuffixes = arrayOf(".jar");
153153
private static final String[] allSuffixes;
154154

155155
static {
156-
// compute based on platform
157-
// if (Options.CEXT_ENABLED.load()) {
158-
// if (Platform.IS_WINDOWS) {
159-
// extensionSuffixes = new String[]{".jar", ".dll", ".jar.rb"};
160-
// } else if (Platform.IS_MAC) {
161-
// extensionSuffixes = new String[]{".jar", ".bundle", ".jar.rb"};
162-
// } else {
163-
// extensionSuffixes = new String[]{".jar", ".so", ".jar.rb"};
164-
// }
165-
// } else {
166-
// extensionSuffixes = new String[]{".jar", ".jar.rb"};
167-
// }
168-
extensionSuffixes = new String[]{".jar", ".jar.rb"};
169156
allSuffixes = new String[sourceSuffixes.length + extensionSuffixes.length];
170157
System.arraycopy(sourceSuffixes, 0, allSuffixes, 0, sourceSuffixes.length);
171158
System.arraycopy(extensionSuffixes, 0, allSuffixes, sourceSuffixes.length, extensionSuffixes.length);

0 commit comments

Comments
 (0)