2
0
Эх сурвалжийг харах

2009-07-26 Miguel de Icaza <[email protected]>

	* ILGenerator.cs: Fix the exception thrown when LocalBuilders are
	mixed between ILGenerators.

svn path=/trunk/mcs/; revision=138709
Miguel de Icaza 16 жил өмнө
parent
commit
722d660422

+ 5 - 0
mcs/class/corlib/System.Reflection.Emit/ChangeLog

@@ -1,3 +1,8 @@
+2009-07-26  Miguel de Icaza  <[email protected]>
+
+	* ILGenerator.cs: Fix the exception thrown when LocalBuilders are
+	mixed between ILGenerators.
+
 2009-07-24 Rodrigo Kumpera  <[email protected]>
 
 	* TypeBuilder.cs: Make the interfaces field internal.

+ 1 - 1
mcs/class/corlib/System.Reflection.Emit/ILGenerator.cs

@@ -680,7 +680,7 @@ namespace System.Reflection.Emit {
 			make_room (6);
 
 			if (local.ilgen != this)
-				throw new Exception ("Trying to emit a local from a different ILGenerator.");
+				throw new ArgumentException ("Trying to emit a local from a different ILGenerator.");
 
 			/* inline the code from ll_emit () to optimize il code size */
 			if (opcode.StackBehaviourPop == StackBehaviour.Pop1) {