diff --git a/ChangeLog b/ChangeLog index ddb466f33..2784c7ec2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-08-04 Mike Kestner + + * generator/Ctor.cs : call Finish and HandleException for static ctor + method bodies. [Fixes #75493] + 2005-08-03 Mike Kestner * bootstrap : use gnome and vfs 2.10 api. diff --git a/generator/Ctor.cs b/generator/Ctor.cs index ce4f3ea05..d8c184225 100644 --- a/generator/Ctor.cs +++ b/generator/Ctor.cs @@ -76,12 +76,15 @@ namespace GtkSharp.Generation { Body.Initialize(gen_info, false, false, ""); - sw.Write("\t\t\treturn "); + sw.Write("\t\t\t" + name + " result = "); if (container_type is StructBase) sw.Write ("{0}.New (", name); else sw.Write ("new {0} (", name); sw.WriteLine (CName + "(" + Body.GetCallString (false) + "));"); + Body.Finish (sw, ""); + Body.HandleException (sw, ""); + sw.WriteLine ("\t\t\treturn result;"); } public void Generate (GenerationInfo gen_info)