Ticket #838 (closed defect: fixed)
Opened 2011-10-20T16:22:58-05:00
Last modified 2012-05-15T17:09:50-05:00
Better persistence behavior for unsupported object types
Reported by: | curtis | Owned by: | curtis |
---|---|---|---|
Priority: | major | Milestone: |
|
Component: | Plugin Framework | Version: | |
Severity: | serious | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | #1051 |
Description
The persistence mechanism serializes object values using toString() and restores them by looking for a constructor that takes a single String parameter. Some types of objects may not comply with this assumption: e.g., imagej.data.Dataset. In this case, we should avoid persisting the object values at all.
A workaround is to label the parameter with "persist=false" but requiring that all the time will be highly unintuitive for users.
See ticket #810 for an example of this situation.
Change History
comment:1 Changed 2011-11-07T17:27:36-06:00 by curtis
- Milestone changed from imagej-2.0-beta1 to imagej-2.0-beta2
comment:2 Changed 2011-11-08T10:39:33-06:00 by curtis
comment:3 Changed 2012-02-26T21:47:10-06:00 by curtis
- Component changed from other to ij-ext
- Blocking 11 added
comment:5 Changed 2012-05-15T17:09:26-05:00 by curtis
- Milestone changed from imagej-2.0.0-beta3 to imagej-2.0.0-beta2
Fixed in b59ded0bcb1480d39416d9bde11bcfd82e07a096.
comment:6 Changed 2012-05-15T17:09:50-05:00 by curtis
- Status changed from new to closed
- Resolution set to fixed