The optimizer always is set after the BuildInstantiator method is called in PocoComponentTuplizer.

Description

The ReflectionOptimizer is never used when a component is instantiated because in the PocoComponentTuplizer the BuildInstantiator method is called before the optimizer is set.

Environment

None

Attachments

1

Activity

cremor August 19, 2014 at 12:31 PM

The pull request was merged into master, so this issue can be closed.

Alex Zaytsev May 7, 2014 at 11:07 AM

TODO: Consider if changes from https://github.com/nhibernate/nhibernate-core/pull/232 (NH-3560) to be included to 3.4.x branch.

cremor May 9, 2012 at 11:21 AM

I've just pushed an additional commit that fixes the problem that the PocoComponentTuplizers don't use a ReflectionOptimizer after they are deserialized (that happens if the whole Configuration is deserialized).

Nikita Govorov May 9, 2012 at 10:31 AM

Cool, thanks.
Just in case, fix similar to attached patch, was a part of that pull request: https://github.com/NikGovorov/nhibernate-core/commit/cd7b9bb582f97c85688cc80b44bc192446d743c3. Anyway, the way cremor fixed it I like more.

cremor May 9, 2012 at 7:01 AM

I've created a pull request that fixes this bug in a way similar to how Fabio fixed NH-1587.
Pull request: https://github.com/nhibernate/nhibernate-core/pull/100

Fixed

Details

Assignee

Reporter

Labels

Components

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created April 19, 2012 at 7:34 AM
Updated July 12, 2018 at 1:32 AM
Resolved August 25, 2014 at 7:59 PM
Who's Looking?