[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.

http://bugzilla.ximian.com/show_bug.cgi?id=61689

--- 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: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+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 @@
 http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemReflectionConstructorInfoClassInvokeTopic2.asp
 
 ------- 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.