Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.6.2
-
Fix Version/s: JRuby 1.7.0.pre1
-
Component/s: None
-
Labels:None
-
Environment:Ubuntu 11.04
-
Number of attachments :
Description
- 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
I don't think we intend to support marshalling Java objects. It could be implemented using Serializable, but for now it is not implemented at all. Until it is, perhaps the error messaging should be better.