https://bugzilla.novell.com/show_bug.cgi?id=389279
Summary: ParamsParameter.ApplyAttributes fails because protected
'builder' field is never initialised
Product: Mono: Compilers
Version: 1.9.0
Platform: x86
OS/Version: Windows XP
Status: NEW
Severity: Normal
Priority: P5 - None
Component: C#
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
Depends on: 389278
Found By: Other
ParamsParameter.ApplyAttributes
fails because builder field is never initialised
Proposed solution is to copy the initialisation code from ImplicitParameter
constructor:
parameter.cs ~177ln
public override void ApplyAttributes (MethodBuilder mb,
ConstructorBuilder cb, int
index)
{
base.ApplyAttributes (mb, cb, index);
CustomAttributeBuilder a = new CustomAttributeBuilder (
TypeManager.cons_param_array_attribute, new
object[0]);
if (builder == null)
{
builder = mb.DefineParameter(1,
ParameterAttributes.None, "");
}
builder.SetCustomAttribute (a);
}
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs