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

Key: JRUBY-1754
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Charles Oliver Nutter
Reporter: Charles Oliver Nutter
Votes: 0
Watchers: 0
Operations

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

Regression in specified Time behavior with Joda Time changes

Created: 20/Dec/07 03:36 AM   Updated: 23/Apr/08 10:03 AM
Component/s: Core Classes/Modules
Affects Version/s: JRuby 1.1RC1
Fix Version/s: JRuby 1.1RC1

Time Tracking:
Not Specified


 Description  « Hide
I can't confirm whether this is a bad spec or a failure in JRuby, but the stack trace at the very least should not happen. This is from Rubinius spec/library/time_spec.rb.
Exception in thread "main" org.joda.time.IllegalFieldValueException: Value 60 for secondOfMinute must be in the range [0,59]
        at org.joda.time.field.FieldUtils.verifyValueBounds(FieldUtils.java:215)
        at org.joda.time.field.PreciseDateTimeField.set(PreciseDateTimeField.java:111)
        at org.joda.time.DateTime.withSecondOfMinute(DateTime.java:1501)
        at org.jruby.RubyTime.createTime(RubyTime.java:746)
        at org.jruby.RubyTime.new_utc(RubyTime.java:616)
        at org.jruby.RubyTimeInvoker$new_utc_method_1_9.call(Unknown Source)


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Charles Oliver Nutter - 20/Dec/07 04:25 AM
Fixed in 5303.