[Mono-bugs] [Bug 338242] New: generated class files declare possibly conflicting protected members

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Oct 31 15:12:05 EDT 2007


https://bugzilla.novell.com/show_bug.cgi?id=338242

           Summary: generated class files declare possibly conflicting
                    protected members
           Product: Mono: Class Libraries
           Version: 1.2
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: wasabi at larvalstage.net
         QAContact: mono-bugs at ximian.com
          Found By: ---


A generated .cs file produced by a .aspx files generates the following members:

protected System.Web.HttpApplication ApplicationInstance { get; }
protected System.Web.Profile.DefaultProfile Profile { get; }

These members should be declared private. The base class, which is user
provided, may declare similarily named properties, and thus lead to a conflict
with these auto generated properties.

I ran into this in my own pages, which run fine on MS.Net, because I provide a
Page base type that exposes ApplicationInstance as a member.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list