Skip to content

Instantly share code, notes, and snippets.

@headius

headius/.diff Secret

Created May 22, 2018 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save headius/d0a7d699f4a48741add6acc338d0a3fe to your computer and use it in GitHub Desktop.
Save headius/d0a7d699f4a48741add6acc338d0a3fe to your computer and use it in GitHub Desktop.
diff --git a/core/src/main/java/org/jruby/runtime/Helpers.java b/core/src/main/java/org/jruby/runtime/Helpers.java
index 07ac5df306..7204facb7d 100644
--- a/core/src/main/java/org/jruby/runtime/Helpers.java
+++ b/core/src/main/java/org/jruby/runtime/Helpers.java
@@ -923,7 +923,7 @@ public class Helpers {
public static RubyModule findImplementerIfNecessary(RubyModule clazz, RubyModule implementationClass) {
if (implementationClass.needsImplementer()) {
// modules are included with a shim class; we must find that shim to handle super() appropriately
- return clazz.findImplementer(implementationClass);
+ return clazz.findImplementer(implementationClass).getMethodLocation();
} else {
// method is directly in a class, so just ensure we don't use any prepends
return implementationClass.getMethodLocation();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment