[Mono-bugs] [Bug 61689][Wis] Changed - Can construct abstract class through reflection.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 22 Jul 2004 17:36:32 -0400 (EDT)

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by echeslack@gmail.com.


--- shadow/61689	2004-07-22 17:35:32.000000000 -0400
+++ shadow/61689.tmp.10675	2004-07-22 17:36:32.000000000 -0400
@@ -1,14 +1,14 @@
 Bug#: 61689
 Product: Mono: Class Libraries
 Version: unspecified
+OS: unknown
 OS Details: 
 Status: NEW   
+Severity: Unknown
 Priority: Wishlist
 Component: CORLIB
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: cleonard@go.ro               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -86,6 +86,11 @@
 ------- Additional Comments From echeslack@gmail.com  2004-07-22 17:35 -------
 Created an attachment (id=8681)
 patch to add an exception to ConstructorInfo.Invoke()
+------- Additional Comments From echeslack@gmail.com  2004-07-22 17:36 -------
+I added a patch to deal with the problem.  It just adds a check in
+Invoke to make sure that the DeclaringType (i.e. the class you are
+trying to call the constructor for) is not abstract.