Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Marshal.dump jruby subclass of Java class #2377

Open
headius opened this issue Dec 29, 2014 · 0 comments
Open

Cannot Marshal.dump jruby subclass of Java class #2377

headius opened this issue Dec 29, 2014 · 0 comments

Comments

@headius
Copy link
Member

headius commented Dec 29, 2014

From http://jira.codehaus.org/browse/JRUBY-6886

class Plain implements Serializable {
}
class D < Plain
end

Trying to Marshal.dump and instance of D results in the following error

TypeError: Java type is not serializable: org.jruby.javasupport.proxy.JavaProxyConstructor$2
  marshal_dump at org/jruby/java/proxies/JavaProxy.java:389
          dump at org/jruby/RubyMarshal.java:101
        (root) at marshal_derived.rb:16

Example java code and ruby code attached

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant