[Mono-bugs] [Bug 671033] Exception for ConstructorShouldNotCallVirtualMethodsRule

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Feb 15 19:57:02 EST 2011


https://bugzilla.novell.com/show_bug.cgi?id=671033

https://bugzilla.novell.com/show_bug.cgi?id=671033#c1


Sebastien Pouliot <spouliot at novell.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO
                 CC|                            |spouliot at novell.com
       InfoProvider|                            |knocte at gmail.com

--- Comment #1 from Sebastien Pouliot <spouliot at novell.com> 2011-02-16 00:57:01 UTC ---
Bad requirement IMO but since I never used NHibernate I'll assume there are
good reasons for it ;-). 

In any case I'm willing to consider a patch to skip this case (even if MS uses
[SuppressMessage] on about every DependencyObject since they all violate the
corresponding FxCop rule). 

However in order to keep the extra work from slowing every users the patch
needs to:

a) override Initialize to set a flag if the current assembly has reference to
the FluentNHibernate.Mapping.ClassMap`1 type.

b) inside the Check method check the flag, if set, then check if there is a
(another, right?) type (inside the same assembly?) that inherits from
FluentNHibernate.Mapping.ClassMap<User> ?!? 

That better be factored into it's own method, called when the flag is true ;-)

c) provide unit tests that will mock, not require, NHibernate.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list