Opened 9 years ago
Closed 9 years ago
#2425 closed defect (rejected)
StorableHooks are not called for structs
Reported by: | gkronber | Owned by: | epitzer |
---|---|---|---|
Priority: | medium | Milestone: | HeuristicLab 3.3.x Backlog |
Component: | Persistence | Version: | 3.3.11 |
Keywords: | Cc: |
Description
Change History (3)
comment:1 Changed 9 years ago by gkronber
- Owner set to gkronber
- Status changed from new to accepted
comment:2 Changed 9 years ago by gkronber
- Milestone changed from HeuristicLab 3.3.12 to HeuristicLab 3.3.x Backlog
- Owner changed from gkronber to epitzer
- Status changed from accepted to assigned
comment:3 Changed 9 years ago by epitzer
- Resolution set to rejected
- Status changed from assigned to closed
Note: See
TracTickets for help on using
tickets.
In my opinion a struct is primarily intended to be "stupid" value type without own functionality, which is reflected in the StructSerializer. I would suggest to put any special handling into the surrounding class, where the StorableSerializer can take care of calling any hooks. Otherwise we would have to duplicate the (expensive) hook discovery following class hierarchies also for a struct. If you absolutely need this functionality feel free to re-open this bug.