| Summary: | Custom ValueHolder POJO cannot be Serialized | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Amita Mehta <amehta5> | ||||
| Component: | Eclipselink | Assignee: | Nobody - feel free to take it <nobody> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | major | ||||||
| Priority: | P2 | CC: | amehta5, andrei.ilitchev, tom.ware | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | submitted_patch | ||||||
| Attachments: |
|
||||||
|
Description
Amita Mehta
For step 4, do you mean that the UnitOfWork itself should be serialized to a file? UnitOfWork is not Serializable. Or serialize the clone that is returned from the UnitOfWork to a file? Perhaps a code example to illustrate the problem? (In reply to comment #1) > For step 4, do you mean that the UnitOfWork itself should be serialized to a > file? UnitOfWork is not Serializable. > > Or serialize the clone that is returned from the UnitOfWork to a file? > > Perhaps a code example to illustrate the problem? I mean serialize the clone that is returned from the UnitOfWork to a file. (In reply to comment #2) > (In reply to comment #1) > > For step 4, do you mean that the UnitOfWork itself should be serialized to a > > file? UnitOfWork is not Serializable. > > > > Or serialize the clone that is returned from the UnitOfWork to a file? > > > > Perhaps a code example to illustrate the problem? > > I mean serialize the clone that is returned from the UnitOfWork to a file. I actually tried this with EclipseLink trunk and our testing framework (with ContainerIndirectionPolicy), and was not able to reproduce the problem. Could you please submit a small testcase demonstrating the issue, as well as details of the JDK version and vendor you are utilizing. Setting target and priority. See the following page for the meanings of these fields: http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines Community: Please vote for this bug if it is important to you. Votes are one of the main criteria we use to determine which bugs to fix next. Targetting for our 2.3.3 release - the next open release. At the moment, based on some email discussions, I am assuming the goal is to serialize an instance of UnitOfWorkImpl that ocntains a mapping with a ContainerIndirectionPolicy. More details about exactly what you are doing and what the behavior you expect from the UnitOfWork when it is serialized will help ensure any test cases we build test your scenario. Created attachment 214493 [details]
Suggested patch
Changing ContainerIndirectionPolicy's containerConstructor field to be transient - as was suggested by the filer.
Added ContainerIndirectionPolicySerializationTest to eclipselink.core.test
In TestingBrowser it's found under: LRG - FeatureTestModel - MiscellaneousTests
The patch checked into both trunk (2.4) and 2.3.3. The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |