Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Conversation

@shift-evgeny
Copy link
Contributor

When deserializing a type from JSV the type's static constructor was sometimes not called before the JsConfig for that type is cached. This was problematic when the static constructor sets JsConfig.OnDeserialized (which is the obvious place to set it), because OnDeserialized then does not get called and the type is not deserialized correctly. The included unit test demonstrates this problem.

Also fixed some unrelated unit tests that were failing on my machine due to timezone differences.

@mythz
Copy link
Member

mythz commented Dec 11, 2015

Hi, can you approve the Contributor License Agreement so we can look at merging this, thx.

mythz added a commit that referenced this pull request Dec 13, 2015
Fix JsConfig<T> to run T's static constructor first
@mythz mythz merged commit df49400 into ServiceStack:master Dec 13, 2015
@mythz
Copy link
Member

mythz commented Dec 13, 2015

Thanks for PR, this change is available from v4.0.51 that's now available on MyGet.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants