Skip to content

Fixes Time.at argument handling (#7265)#7359

Merged
enebo merged 2 commits intojruby:jruby-9.3from
enebo:fix_7265
Sep 13, 2022
Merged

Fixes Time.at argument handling (#7265)#7359
enebo merged 2 commits intojruby:jruby-9.3from
enebo:fix_7265

Conversation

@enebo
Copy link
Member

@enebo enebo commented Sep 12, 2022

This version of the fix for #7265 makes arg3 = :microseconds as a default value similar to Ruby (Time#at is now impld in Ruby and is this way).

This version of the fix makes arg3 = :microseconds as a default value similar
to Ruby (Time#at is now impld in Ruby and is this way).
@enebo enebo added this to the JRuby 9.3.8.0 milestone Sep 12, 2022
This only happens unnaturally by intermediate methods which already
know the third argument is either really the options hash OR it was
not provided at all (varargs caller).  Replace using nil with null in
atOpts which upon seeing null will set the value to :microseconds.  If
it is nil it will blow up as expected.
@enebo enebo merged commit a00da01 into jruby:jruby-9.3 Sep 13, 2022
@enebo enebo deleted the fix_7265 branch March 4, 2025 18:35
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.

1 participant