History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: JRUBY-1807
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Thomas E Enebo
Reporter: Vladimir Sizikov
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
JRuby

Lots of spec failures for Time

Created: 27/Dec/07 05:47 PM   Updated: 23/Apr/08 10:03 AM
Component/s: Core Classes/Modules
Affects Version/s: JRuby 1.1+
Fix Version/s: JRuby 1.1RC1

Time Tracking:
Not Specified

File Attachments: 1. Text File time-failures.patch (3 kb)

Environment: Latest JRuby 1.1b1

Testcase included: yes
Patch Submitted: Yes


 Description  « Hide
Running rubinius specs against the latest JRuby leads to 19 failures out of 55. Not good.

For example:

ENV["TZ"]="CET-1:00:00"
puts Time.at(0).hour

Prints 1 in MRI, but 0 in JRuby.
And there are many more such failures.

The provided patch (one-liner) reduces the number of spec failures from 19 to 5 8-).



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Charles Oliver Nutter - 27/Dec/07 08:12 PM
Committed in 5389. Thanks!

Charles Oliver Nutter - 28/Dec/07 12:34 PM
The given patch broke the "old" time specs we include in our repo, so I've reverted it.

Thomas E Enebo - 29/Dec/07 12:14 AM
HACK...Basically one tweak (someone please figure out why this works) so both old specs and new ones run

Fixed in commit 5412 on trunk


Vladimir Sizikov - 29/Dec/07 05:37 AM
More elaborate version of Tom's patch, with extensive comments.

Some performance optimization will be done later, as part on another issue (we have an open issue for Time being slow).


Vladimir Sizikov - 29/Dec/07 05:38 AM
This newer patch passes both, old and new, Time specs.

Charles Oliver Nutter - 29/Dec/07 11:34 AM
Additional fixes applied in 5418.