[Mono-bugs] [Bug 82820][Wis] New - Attribute values with Enum type are missing from CustomAttribute

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Sep 12 10:57:22 EDT 2007

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 jeff.brown at gmail.com.


--- shadow/82820	2007-09-12 10:57:22.000000000 -0400
+++ shadow/82820.tmp.24183	2007-09-12 10:57:22.000000000 -0400
@@ -0,0 +1,48 @@
+Bug#: 82820
+Product: Mono: Class Libraries
+Version: 1.2
+OS Details: 
+Status: NEW   
+Priority: Wishlist
+Component: Cecil
+AssignedTo: mono at evain.net                            
+ReportedBy: jeff.brown at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: Attribute values with Enum type are missing from CustomAttribute
+Description of Problem:
+It seems that Enum values are not read properly.  For example, upon reading
+an assembly, I found that the CustomAttribute object describing the
+assembly-level [DebuggableAttribute(DebuggingModes.<whatever>)] attribute
+had an empty ConstructorParameters list.  The correct constructor
+MethodReference was produced, however, and did define exactly one parameter.
+Steps to reproduce the problem:
+1. Load an assembly.
+2. Find an attribute that has an Enum-valued constructor parameter. 
+[DebuggableAttribute] is a good one.
+Actual Results:
+The ConstructorParameters list is empty.  No values to be found...
+Expected Results:
+There should be exactly as many values in there as there are constructor
+How often does this happen? 
+Additional Information:
+I found this shortly after bug #82814 but I haven't dug deeply into its
+causes yet.

More information about the mono-bugs mailing list