From 3cf9cf91ce183a82ecb7734e9c5501eaf3649e87 Mon Sep 17 00:00:00 2001 From: Charles Oliver Nutter Date: Wed, 27 Nov 2024 11:57:09 -0600 Subject: [PATCH] Don't double-add subclass The MetaClass constructor already does this. --- core/src/main/java/org/jruby/RubyBasicObject.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/core/src/main/java/org/jruby/RubyBasicObject.java b/core/src/main/java/org/jruby/RubyBasicObject.java index 337a2593cab..a198cd1f5c5 100644 --- a/core/src/main/java/org/jruby/RubyBasicObject.java +++ b/core/src/main/java/org/jruby/RubyBasicObject.java @@ -501,8 +501,6 @@ public RubyClass makeMetaClass(RubyClass superClass) { klass.setMetaClass(superClass.getRealClass().metaClass); - superClass.addSubclass(klass); - return klass; }