This project is archived and is in readonly mode.
XmlMini autoload cause endless loop with Ruby 1.9.1
Reported by Luca Guidi | January 29th, 2009 @ 04:25 PM
I'm using Ruby 1.9.1-rc2 (ruby 1.9.1p0 (2009-01-20 revision 21700) [i386-darwin9.5.0]) and trying to run unit tests for AS.
I noticed an endless loop for all the cases which are using XmlMini, which is autoloaded:
autoload :XmlMini, 'active_support/xml_mini'
Autoload expect to find ActiveSupport::XmlMini (look at the second argument), but it doesn't exist, 'cause XmlMini is a top-level module. It cause an endless loop.
The solution (attached as patch) is to include XmlMini in ActiveSupport namespace.
Comments and changes to this ticket
-
Luca Guidi January 31st, 2009 @ 10:15 AM
Same behavior with Ruby 1.9.1 (ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-darwin9.5.0])
-
DHH February 5th, 2009 @ 07:57 PM
- Assigned user set to Jeremy Kemper
-
Jeremy Kemper February 5th, 2009 @ 08:46 PM
- State changed from new to committed
- Milestone cleared.
75b2e7e9c90b6229f7ef1a5f3d7ccce44caf6855
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>