A few more clues.
The JRuby regression happened in a large commit about callbacks on Dec 18:
svn rev:8398
"Grr...I suppose I should have checked this before, but Mongrel still
uses CallbackFactory. We need to get them off it so we can delete it
some day. Damn you, crufty old dependencies!"
Seemingly the only thing needed to crash JRuby is to run the 'to_xml'
method on an AR instance.
I've been simplifying the code in test/cases/serialization_test.rb an
the 'to_xml' on @serialized is all that's needed.
class SerializationTest < ActiveRecord::TestCase
def setup
@contact_attributes = {
:name => 'aaron stack',
}
@contact = Contact.new(@contact_attributes)
end
def test_serialize_should_be_reversible
@serialized = Contact.new(@contact_attributes)
@serialized.to_xml
assert true
end
end
class Contact < ActiveRecord::Base
def self.column(name, sql_type = nil, options = {})
@columns ||= []
@columns <<
ActiveRecord::ConnectionAdapters::Column.new(name.to_s,
options[:default], sql_type.to_s, options[:null])
end
column :name, :string
end
This will end up in Jira once I figure out what the real problem is.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email