Can't serialize RubyModule, subclass of RubyBasicObject, which extends 
Serializable
-----------------------------------------------------------------------------------

                 Key: JRUBY-5852
                 URL: http://jira.codehaus.org/browse/JRUBY-5852
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.6.2
         Environment: Ubuntu 11.04
            Reporter: Joshua Hou
            Assignee: Thomas E Enebo


# foo.rb

require 'java'

list = Java::JavaUtil::ArrayList.new
list << Java::Null
list << "foo"

Marshal.dump(list, open('somenewfile','w'))


# IOError: org.jcodings.specific.UTF8Encoding
#   marshal_dump at org/jruby/java/proxies/JavaProxy.java:366
#           dump at org/jruby/RubyMarshal.java:96
#         (root) at foo.rb:9

-- 
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


Reply via email to