Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RubySet#newSet should be a static method instead of an instance method #6605

Closed
caleb opened this issue Mar 9, 2021 · 0 comments
Closed

Comments

@caleb
Copy link

caleb commented Mar 9, 2021

JRuby 9.2.16.0

The newSet method of org.jruby.ext.set.RubySet should be a static method so that users can create sets from Java:

RubySet newSet(final Ruby runtime) {
RubySet set = new RubySet(runtime, getMetaClass());
set.allocHash(runtime);
return set;
}

headius added a commit that referenced this issue Mar 11, 2021
@headius headius added this to the JRuby 9.2.17.0 milestone Mar 11, 2021
@headius headius closed this as completed Mar 11, 2021
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

No branches or pull requests

2 participants