Skip to content

Add specs for singleton class handling in Proc#dup and Proc#clone#1382

Merged
andrykonchin merged 1 commit into
ruby:masterfrom
shugo:proc-dup-singleton-class
Jul 12, 2026
Merged

Add specs for singleton class handling in Proc#dup and Proc#clone#1382
andrykonchin merged 1 commit into
ruby:masterfrom
shugo:proc-dup-singleton-class

Conversation

@shugo

@shugo shugo commented Jul 12, 2026

Copy link
Copy Markdown
Member

Proc#dup should not copy the singleton class, but it does in JRuby, so I've fixed it: jruby/jruby#9523

This PR adds a spec for it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@andrykonchin

Copy link
Copy Markdown
Member

Thank you!

You could actually include the specs directly in the JRuby PR alongside the fix. The ruby/spec repository is regularly synced with JRuby's spec/ruby directory.

@andrykonchin andrykonchin merged commit 79e2dee into ruby:master Jul 12, 2026
14 checks passed
@shugo

shugo commented Jul 12, 2026

Copy link
Copy Markdown
Member Author

Thank you! I'll follow your instructions next time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants