[Mono-bugs] [Bug 389279] New: ParamsParameter.ApplyAttributes fails because protected ' builder' field is never initialised
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon May 12 06:03:06 EDT 2008
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: mono-bugs at lists.ximian.com
ReportedBy: mihailik at gmail.com
QAContact: mono-bugs at lists.ximian.com
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.
More information about the mono-bugs
mailing list