Skip to content

Commit

Permalink
Don't double-add subclass
Browse files Browse the repository at this point in the history
The MetaClass constructor already does this.
  • Loading branch information
headius committed Nov 27, 2024
1 parent 6c6982c commit 3cf9cf9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions core/src/main/java/org/jruby/RubyBasicObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -501,8 +501,6 @@ public RubyClass makeMetaClass(RubyClass superClass) {

klass.setMetaClass(superClass.getRealClass().metaClass);

superClass.addSubclass(klass);

return klass;
}

Expand Down

0 comments on commit 3cf9cf9

Please sign in to comment.