Free cookie consent management tool by TermsFeed Policy Generator

Opened 8 years ago

Closed 8 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:


Change History (3)

comment:1 Changed 8 years ago by gkronber

  • Owner set to gkronber
  • Status changed from new to accepted

comment:2 Changed 8 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 8 years ago by epitzer

  • Resolution set to rejected
  • Status changed from assigned to closed

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.

Note: See TracTickets for help on using tickets.