[Mono-bugs] [Bug 76757][Nor] Changed - new AppDomains inherit current loaded assemblies
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sun Sep 17 08:17:40 EDT 2006
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 gert.driesen at pandora.be.
http://bugzilla.ximian.com/show_bug.cgi?id=76757
--- shadow/76757 2006-08-16 18:02:31.000000000 -0400
+++ shadow/76757.tmp.25307 2006-09-17 08:17:40.000000000 -0400
@@ -1,13 +1,13 @@
Bug#: 76757
Product: Mono: Runtime
Version: 1.1
OS: unknown
OS Details:
-Status: RESOLVED
-Resolution: FIXED
+Status: REOPENED
+Resolution:
Severity: Unknown
Priority: Normal
Component: misc
AssignedTo: mono-bugs at ximian.com
ReportedBy: spigaz at gmail.com
QAContact: mono-bugs at ximian.com
@@ -672,6 +672,63 @@
Created an attachment (id=17450)
Updated patch, which works on r63683
------- Additional Comments From gonzalo at ximian.com 2006-08-16 18:02 -------
Patch applied in r63848.
+
+------- Additional Comments From gert.driesen at pandora.be 2006-09-17 08:17 -------
+This patch introduced a regression:
+
+When an argument of a non-corlib type is passed to the ctor for the
+type that you want to construct an instance from, then the assembly
+is not automatically loaded in the constructed domain.
+
+This regression makes the NAnt <nunit2> task non-functional on Mono.
+
+I've attached a repro for this regression.
+
+Output from running it on MS.NET:
+
+*** Create1 ***
+mscorlib, Version=2.0.0.0, Culture=neutral,
+PublicKeyToken=b77a5c561934e089
+test, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
+
+
+*** Create2 ***
+mscorlib, Version=2.0.0.0, Culture=neutral,
+PublicKeyToken=b77a5c561934e089
+System, Version=2.0.0.0, Culture=neutral,
+PublicKeyToken=b77a5c561934e089
+test, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
+
+Output from running it on Mono:
+
+*** Create1 ***
+System, Version=2.0.0.0, Culture=neutral,
+PublicKeyToken=b77a5c561934e089
+test, Version=0.0.0.0, Culture=neutral
+mscorlib, Version=2.0.0.0, Culture=neutral,
+PublicKeyToken=b77a5c561934e089
+
+
+*** Create2 ***
+
+Unhandled Exception: System.IO.FileNotFoundException: System : System
+ at (wrapper xdomain-invoke) System.AppDomain:CreateInstanceFrom
+(string,string,bool,System.Reflection.BindingFlags,System.Reflection.
+Binder,object[],System.Globalization.CultureInfo,object
+[],System.Security.Policy.Evidence)
+ at (wrapper remoting-invoke-with-check)
+System.AppDomain:CreateInstanceFrom
+(string,string,bool,System.Reflection.BindingFlags,System.Reflection.
+Binder,object[],System.Globalization.CultureInfo,object
+[],System.Security.Policy.Evidence)
+ at bug76757Test.Main () [0x00000]
+
+
+Apart from the obvious FileNotFoundException in the Create2 test,
+there's also a difference in the Create1 test:
+
+The System assembly is also loaded in the domain on Mono. While it
+should not have been loaded (see MS output).
More information about the mono-bugs
mailing list