[Mono-bugs] [Bug 71304][Wis] New - IsCOMObject is not being set.
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 14 Jan 2005 19:30:16 -0500 (EST)
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 miguel@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=71304
--- shadow/71304 2005-01-14 19:30:16.000000000 -0500
+++ shadow/71304.tmp.14583 2005-01-14 19:30:16.000000000 -0500
@@ -0,0 +1,48 @@
+Bug#: 71304
+Product: Mono: Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: miguel@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: IsCOMObject is not being set.
+
+This bug is so not important, the following program
+should have no output:
+
+using System;
+using System.Reflection;
+using System.Reflection.Emit;
+using System.Threading;
+
+class X {
+ static string ASSEMBLY_NAME =
+"MonoTests.System.Reflection.Emit.TypeBuilderTest";
+ static private AssemblyBuilder assembly;
+ static private ModuleBuilder module;
+
+ static void Main ()
+ {
+ AssemblyName assemblyName = new AssemblyName();
+ assemblyName.Name = ASSEMBLY_NAME;
+
+ assembly =
+ Thread.GetDomain().DefineDynamicAssembly(
+ assemblyName, AssemblyBuilderAccess.RunAndSave, "c:\\");
+
+ module = assembly.DefineDynamicModule("module1");
+ TypeBuilder tb = module.DefineType ("xx", TypeAttributes.Import);
+ if (!tb.IsCOMObject)
+ Console.WriteLine ("Failure");
+
+ }
+}