-
Notifications
You must be signed in to change notification settings - Fork 82
additional buffer argument #170
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
Conversation
e978f21
to
c1e25e1
Compare
buffer = '' | ||
actual = cipher.update('bar' * 10, buffer) | ||
if jruby? | ||
expected = "\xE6\xD3Y\fc\xEE\xBA\xB2*\x0Fr\xD1\xC2b\x03\xD0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe a bug?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ahorek I just saw this. I don't know. I would expect the two impls to generate the same data.
} | ||
|
||
@JRubyMethod | ||
public IRubyObject update(final ThreadContext context, final IRubyObject arg, IRubyObject buffer) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a @JRubyMethod buffer can be any Ruby type. So you need to do something like TypeConverter.checkStringType.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
Thanks for the fix! In which JRuby version is this going to be released? I don't see it in JRuby 9.2.5.0. |
jruby/jruby#5242