This was done because of lazy properties. Previously if you had a lazy
property with private set, you would only get a error in the log which
was very easy to miss. Now the validator complains about it so you
can't miss it.
Of course it's annoying if you don't need lazy properties since the
usual lazy classes (proxies) for associations can still work with
private setters. But it is easy to fix, just overwrite
DynProxyTypeValidator and add a "if (!accessor.IsPrivate)" condition
there before the call of "CheckMethodIsVirtual(type, accessor)".
On Feb 20, 10:34 am, Gunnar Liljas <
gunnar.lil...@gmail.com> wrote:
> I think so too, but the validation could take that into account.
>
> /G
>
> 2012/2/20 Alexander I. Zaytsev <
hazzik+nos...@gmail.com>
>
>
>
>
>
>
>
> > I think this was made because of partial trust environments.
>
> > 2012/2/20 Gunnar Liljas <
gunnar.lil...@gmail.com>
>
> >> I made a small test, modifying the validation routine to explicitly let
> >> private setters slip through, and it seems to work just fine. Object
> >> hydrating etc. already handles this well. It's the validation routine which
> >> is a bit to simplified, as far as I can tell.
>
> >> /G
>
> >> 2012/2/16 John Davidson <
jwdavid...@gmail.com>
>
> >>> One way is to comment here, but better yet is to vote on the jira issue,
> >>> and the best is to provide a proposed patch that passes all tests.
>
> >>> John Davidson
>