From 95655623c715ea38b11d9fd2464bbd3603ba785f Mon Sep 17 00:00:00 2001 From: Charles Oliver Nutter Date: Mon, 26 Feb 2024 12:14:21 -0600 Subject: [PATCH] Handle prepended shims like included shims Fixes #8121 --- core/src/main/java/org/jruby/RubyClass.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/jruby/RubyClass.java b/core/src/main/java/org/jruby/RubyClass.java index 00ff7353765..116fb8b1af1 100644 --- a/core/src/main/java/org/jruby/RubyClass.java +++ b/core/src/main/java/org/jruby/RubyClass.java @@ -1087,7 +1087,7 @@ private void concreteSubclasses(Collection subs) { Set keys = subclasses.keySet(); for (RubyClass klass: keys) { if (klass.isSingleton()) continue; - if (klass.isIncluded()) { + if (klass.isIncluded() || klass.isPrepended()) { klass.concreteSubclasses(subs); continue; }