You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The third execution of puts ExtendedTestClass.new.strftime('x') resulted in a PrimitiveFailure exception being raised instead of the output of the last TestClass: %Y line (see https://gist.github.com/philr/b22784c46411a5b79dc53e57011f80f2#file-rbx_strftime_output-txt). The stack trace appears to indicate that the super call in Extension#strftime invoked Time#strftime instead of the expected TestClass#strftime.
@philr this is a pretty bizarre bug with a couple different aspects. I'm working on a fix now and hopefully will be done shortly. I'd be super curious how you reproduced it.
@brixen Thanks - I can confirm that this is now fixed with Rubinius 3.99.
I first spotted this issue running the tests for tzinfo on Rubinius 3.93 (see https://travis-ci.org/tzinfo/tzinfo/jobs/331588292#L539). The test code above is based on the LocalTime, LocalDateTime, LocalTimestamp and Localized types from tzinfo.
I ran
ruby rbx_strftime.rb
, whererbx_strftime.rb
is the following:I expected the following output:
The third execution of
puts ExtendedTestClass.new.strftime('x')
resulted in aPrimitiveFailure
exception being raised instead of the output of the lastTestClass: %Y
line (see https://gist.github.com/philr/b22784c46411a5b79dc53e57011f80f2#file-rbx_strftime_output-txt). The stack trace appears to indicate that thesuper
call inExtension#strftime
invokedTime#strftime
instead of the expectedTestClass#strftime
.3.93
Output of
rbx -v
:Ubuntu 17.04 (x86_64)
Output of
uname -a
:Ubuntu 17.04
The text was updated successfully, but these errors were encountered: