[Mono-bugs] [Bug 45539][Maj] New - Enum.GetValues fails on mint

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Fri, 27 Jun 2003 10:49:35 -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 paf@design.ru.

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

--- shadow/45539	Fri Jun 27 10:49:35 2003
+++ shadow/45539.tmp.23754	Fri Jun 27 10:49:35 2003
@@ -0,0 +1,48 @@
+Bug#: 45539
+Product: Mono/Runtime
+Version: unspecified
+OS: All
+OS Details: win32:mint and solaris8:mint
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: PAF@design.ru               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Enum.GetValues fails on mint
+
+mint bug.exe [fails on win32 & solaris8]
+
+when Enum.GetValues tries to 
+   return (Array) info.values.Clone ();
+
+it dies with message 
+   "Cannot cast from source type to destination type"
+
+other tests[not included] show that Clone returned something strange, once 
+saw this:
+** (Imprimatur.exe:668): WARNING **: implement me 0x25
+
+-------------------bug.cs
+using System;
+
+namespace ConsoleApplication1
+{
+	class Class1
+	{
+		enum bug { a, b }
+
+		[STAThread]
+		static void Main(string[] args)
+		{
+			Array values = Enum.GetValues(typeof(bug));
+			Console.WriteLine("ok");
+		}
+	}
+}
+-------------------bug.cs