| Summary: | [Geometry] Precision* classes are not serializable | ||
|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Martin Hoefer <thomas.m.hoefer> |
| Component: | GEF-Legacy Draw2d | Assignee: | Alexander Nyßen <nyssen> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | minor | ||
| Priority: | P3 | CC: | ahunter.eclipse, nyssen |
| Version: | 3.4 | ||
| Target Milestone: | 3.7.1 (Indigo) M5 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Martin Hoefer
Marking as minor since java serialization isn't really intended for long-term storage. What kind of fix do you want to see? Just hard code the UID to 1 like in Point? (In reply to comment #1) > Marking as minor since java serialization isn't really intended for long-term > storage. > > What kind of fix do you want to see? Just hard code the UID to 1 like in > Point? > I think that's the only solution. Of course, it has no effect on already serialized objects. I don't know, if the UID is used by the XML serialization. We solved our problem with an overwritten method of the ObjectInputStream, where we ignore the UID, if it is different from the serilized UID. There is a platform warning we can turn on for this, but I am wondering if this only applies to Draw2d or GEF also? Did you still require this support? Added statement "private static final long serialVersionUID = 1L;" to PrecisionPoint, PrecisionDimension, and PrecisionRectangle. Made respective serialVersionUI fields within Dimension, Insets, Point, and Rectangle private (was package). Committed changes to cvs HEAD (3.7M5). Resolving as fixed. |