-
Notifications
You must be signed in to change notification settings - Fork 936
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix SetSnapShot CopyTo variance failure #3304
Fix SetSnapShot CopyTo variance failure #3304
Conversation
10c1f41
to
2ee3513
Compare
|
I've added test for the incompatible array type. .NET 4.x and .NET Core behave differently. The .NET 4.x throws ArgumentException while .NET Core throws InvalidCastException. Not sure if we need/want to make this consistent. |
While technically a regression from 5.3.0, SetSnapShot is an internal technical class which NHibernate current internal uses do not suffer from the introduced bug. So, it appears there is no regression from an user standpoint. Only the NHibernate.Test project has an issue with this "regression", and only if upgrading our testing framework, which works on that internal class. That is why targeting master seems enough to me. But why not targeting 5.3.x. About:
I do not see a need for that, due to this class being internal and having its current use cases without a possibility of triggering these exceptions. |
Sure. Feel free to drop my test then. |
Yeah but it's still exposed to user via |
2c84730
to
f3e759b
Compare
Since instances of that type can after all be accessed by user code through a public interface (which I had not spotted), re-targeted to 5.3.x, invalid array test adapted to accept the .Net Core case as it is currently. |
Closed and opened PR to fix wrong target on |
This failure causes tests to fail when upgrading the NUnit engine.