[Mono-bugs] [Bug 74811][Nor] New - System.Enum.Parse throws exception because System.Type parameter cannot be found.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 3 May 2005 13:11:11 -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 mlasky@novell.com.

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

--- shadow/74811	2005-05-03 13:11:11.000000000 -0400
+++ shadow/74811.tmp.32307	2005-05-03 13:11:11.000000000 -0400
@@ -0,0 +1,74 @@
+Bug#: 74811
+Product: Mono: Class Libraries
+Version: 1.1
+OS: SLES 9
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: mlasky@novell.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: banderso@novell.com,jpallen@novell.com
+Summary: System.Enum.Parse throws exception because System.Type parameter cannot be found.
+
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem:
+
+When calling System.Enum.Parse using my declared enumerated type throws 
+an exception.
+
+Steps to reproduce the problem:
+1. The enumerated type being parsed is as follows:
+
+public enum Rights
+{
+  Deny,
+  ReadOnly,
+  ReadWrite,
+  Admin
+}
+
+The parse code that throws the exception is as follows:
+
+Rights rights = ( Rights )Enum.Parse( typeof( Rights ), "ReadWrite" );
+
+2. 
+3. 
+
+Actual Results:
+The exception is as follows:
+
+ERROR Novell.iFolder.Ldap.EnterpriseAuthentication - null key
+Parameter name: key
+in <0x00158> System.Collections.Hashtable:Find (System.Object key)
+in <0x00011> System.Collections.Hashtable:Contains (System.Object key)
+in <0x00011> System.Collections.Hashtable+SyncHashtable:ContainsKey 
+(System.Object key)
+in <0x0006f> System.MonoEnumInfo:GetInfo (System.Type enumType, 
+System.MonoEnumInfo info)
+in <0x00022> System.Enum:GetTypeCode ()
+in <0x000ca> System.Enum:Parse (System.Type enumType, System.String 
+value, Boolean ignoreCase)
+in <0x0000f> System.Enum:Parse (System.Type enumType, System.String value)
+in <0x00083> Simias.Storage.AccessControlEntry:.ctor 
+(Simias.Storage.Property aceProperty)
+
+
+Expected Results:
+
+
+How often does this happen? 
+In all of the testing that I have done, I have never seen this problem 
+before and doubt that it can even be reproduced. I'm logging it here just 
+in case it may be helpful.
+
+
+
+Additional Information:
+Running on mono 1.1.6.9.43897