Skip to content

NH-3823 - Initialization of Set with Lazy=Extra causes pending additions to disappear #1339

Closed
@nhibernate-bot

Description

@nhibernate-bot

Martin Francisco created an issue — 3rd September 2015, 1:07:45:

See attached patch for test case.

It looks like adding an item to an uninitialized set causes the item to be queued (NHibernate.Collection.Generic.PersistentSet line 324). Later when the set gets initialized the pending queued operations never get performed. It looks like this normally happens in NHibernate.Collection.AbstractPersistentCollection during EndRead which calls AfterInitialize. However PersistentSet overrides EndRead and does not call base.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions