This project is closed and read-only.
Actions
Backport #5270
closedDate#freeze causes memoized Date methods to fail
Backport #5270:
Date#freeze causes memoized Date methods to fail
Status:
Closed
Assignee:
-
Description
When freezing a Date object, memoized methods will fail because the memoized value cannot be stored on the frozen object. This is because memoized values are stored as instance variables on the object, and those are immutable for frozen objects.
Attached to this bug report is a test case, as well as a patch that fixes the issue (and also includes the test case).
Files
Updated by ddfreyne (Denis Defreyne) about 15 years ago
- File date-once.patch date-once.patch added
Forgot to attach the patch.
Updated by jeremyevans0 (Jeremy Evans) about 7 years ago
- Tracker changed from Bug to Backport
- Project changed from 2 to 5
- Status changed from Open to Closed
- ruby -v deleted (
ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-darwin10.8.0])
Actions