Skip to content

Commit ab66c9e

Browse files
authored
Merge pull request #8282 from headius/import_methods_warning_fix
Properly check for Module's superclass
2 parents 00dd3ed + 5b26476 commit ab66c9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/org/jruby/RubyModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6034,7 +6034,7 @@ public static IRubyObject import_methods(ThreadContext context, IRubyObject self
60346034

60356035
RubyModule module = (RubyModule) _module;
60366036

6037-
if (module.getSuperClass() != runtime.getObject()) {
6037+
if (module.getSuperClass() != null) {
60386038
runtime.getWarnings().warn(module.getName() + " has ancestors, but Refinement#import_methods doesn't import their methods");
60396039
}
60406040
}

0 commit comments

Comments
 (0)