History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: JRUBY-414
Type: New Feature New Feature
Status: Open Open
Priority: Critical Critical
Assignee: Charles Oliver Nutter
Reporter: Charles Oliver Nutter
Votes: 2
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
JRuby

Serialization of wrapped Java objects could be handled as user-marshalled data by Marshal

Created: 07/Jan/07 12:31 AM   Updated: 08/Aug/08 04:27 AM
Component/s: Java Integration
Affects Version/s: None
Fix Version/s: JRuby 1.2

Time Tracking:
Not Specified

File Attachments: 1. Text File jruby-414.patch (6 kb)



 Description  « Hide
It should be possible to Marshal wrapped Java objects by doing the following:
  • Marshal the wrapper object as normal (need some work to make these safely marshallable)
  • Treat the wrapped Java object as user-marshalled data using the "u" tag, for example, and then have the contents of that user-specified format just be normal Java object serialization.

This would allow Marshaling Ruby and Java objects together across the wire to another JRuby instance.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Charles Oliver Nutter - 07/Jan/07 12:33 AM
Part of the work to make the wrapped objects Marshal properly would be defining a valid allocator for JavaObject. See JavaObject.createJavaObjectClass.

Charles Oliver Nutter - 18/Apr/07 04:30 AM
This may also be related to calling Java-wrapped objects over DRb. I think we can still do this and make it work well, but not before 1.0

Charles Oliver Nutter - 30/Sep/07 10:24 AM
Assigning to Bill to get an answer on something:

Bill, I think I know how to fix this, but with your work on e.g. JavaObject (going away) I don't want to touch the code. Obviously adding logic into the marshaller or into the object wrappers (if they still exist) to just call Java serialization would be pretty easy to do; so let's try to fix this for 1.1.


Charles Oliver Nutter - 23/Oct/07 03:37 PM
I feel like it's pretty critical that we can't serialize graphs of objects that contain Java objects, and I really want to try to address this for 1.1. Bill's work will not land in 1.1 timeframe, so it's safe to go forward with this.

Charles Oliver Nutter - 12/Jan/08 10:49 PM
A partial start at this; dump seems to work, but I can't figure out the right place to put marshal_load. This stuff is so grossly complicated.

Charles Oliver Nutter - 15/Feb/08 12:55 PM
Removing target release from issues that fit any of the following criteria:
  • No known way to fix them
  • Java integration enhancements out of scope for 1.1 release
  • Other out of scope issues for 1.1