The recent String interning fixes breaks Rails in certain circumstances
-----------------------------------------------------------------------
Key: JRUBY-1674
URL: http://jira.codehaus.org/browse/JRUBY-1674
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Reporter: Ola Bini
Assignee: Charles Oliver Nutter
Priority: Blocker
The fixes in r5170 makes Mingle tests fail all over the place with errors in
this style:
{noformat}
NoMethodError: undefined method `find_by_name' for Sequence:Class
/Users/david/studios/mingle/vendor/rails/activerecord/lib/active_record/base.rb:1262:in
`method_missing'
/Users/david/studios/mingle/app/models/project.rb:748:in
`reset_card_number_sequence'
/Users/david/studios/mingle/vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:123:in
`method_missing'
/Users/david/studios/mingle/app/models/import/card_reader.rb:111:in
`each_with_row_number'
/Users/david/studios/mingle/app/models/import/card_reader.rb:110:in
`import_cards'
/Users/david/studios/mingle/app/models/card_import.rb:45:in
{noformat}
After some investigation, it seems that the reason it can't find the method is
because interning strings is used for finding methods, possibly in caches, and
this fails with the string that gets returned from the regular expression
matching.
I don't have anything reproducible right now, but all these tests are fine with
the revision before r5170. It might be that Rails in general is broken on
trunk, but I haven't tried yet.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email