[Mono-bugs] [Bug 623390] New: Cannot compile an assembly with a method marked Obsolete(string, true)

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Jul 19 05:57:41 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=623390

http://bugzilla.novell.com/show_bug.cgi?id=623390#c0


           Summary: Cannot compile an assembly with a method marked
                    Obsolete(string,true)
    Classification: Mono
           Product: Mono: Compilers
           Version: 2.6.x
          Platform: All
        OS/Version: openSUSE 11.3
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: djechelon at fastwebnet.it
         QAContact: mono-bugs at lists.ximian.com
          Found By: Community User
           Blocker: No


Description of Problem:
I found that xbuild does not compile an assembly in which there is a method
marked as Obsolete with compilationError flag set to true.
I know that methods with ObsoleteAttribute and coompilation error flag set to
true raise a compilation error when they are INVOKED, not DECLARED.
I managed to create a workaround for my code, but I still want to report the
test case

Steps to reproduce the problem:
1. Download from Subversion the revision 201 of
https://logbus-ng.svn.sourceforge.net/svnroot/logbus-ng/trunk/logbus-core/It.Unina.Dis.Logbus
2. Run xbuild


Actual Results:
Errors:

/home/djechelon/logbus-sharp-1.0/It.Unina.Dis.Logbus/It.Unina.Dis.Logbus.csproj
(default targets) ->
(CoreCompile target) ->                                                         

        InChannels/WindowsEventLogListener.cs(52,17): error CS0619: 
`It.Unina.Dis.Logbus.InChannels.WindowsEventLogListener.ParseError' is
obsolete: `This class never raises this event. It is just required by the
interface'                  
        InChannels/WindowsEventLogListener.cs(52,37): error CS0619: 
`It.Unina.Dis.Logbus.InChannels.WindowsEventLogListener.ParseError' is
obsolete: `This class never raises this event. It is just required by the
interface'                  

         309 Warning(s)
         2 Error(s)


Expected Results:
Compilation success, like happens with Visual Studio compiler

How often does this happen? 
Always

Additional Information:
I have currently removed the attribute from my code as a workaround

-- 
Configure bugmail: http://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