[Mono-bugs] [Bug 439909] New: Problem with throw and Stack traces...

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Oct 29 12:19:30 EDT 2008


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


           Summary: Problem with throw and Stack traces...
           Product: Mono: Class Libraries
           Version: 2.0
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: informatique.internet at fiducial.fr
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


When throw is called without parameter in a catch, it should leave the
stacktrace...

Please try this test case :

public class Default : Page
        {

                protected override void OnLoad(System.EventArgs e)
                {
                        try{
                                Plante();
                        }catch(Exception ex)
                        {
                                throw;
                        }
                }

                private void Plante()
                {
                        throw new Exception("Je plante... vraiment");
                }
        }
}

if you run xsp on that page on mono 2.0 and svn : you get: 
Server Error in '/' Application
Je plante... vraiment

Description: HTTP 500. Error processing request.

Stack Trace:

System.Exception: Je plante... vraiment
  at TestExecute.Default.OnLoad (System.EventArgs e) [0x00000] 

Version information: Mono Version: 1.1.4322.2032; ASP.NET Version:
1.1.4322.2032

on mono 1.9 and on MS.NET you get :

Server Error in '/' Application
Je plante... vraiment

Description: HTTP 500. Error processing request.

Stack Trace:

System.Exception: Je plante... vraiment
  at TestExecute.Default.Plante () [0x00000] 
  at TestExecute.Default.OnLoad (System.EventArgs e) [0x00000] 

Version information: Mono Version: 1.1.4322.2032; ASP.NET Version:
1.1.4322.2032



Please note if you do "throw ex;" instead of throw, the stack trace should be :

System.Exception: Je plante... vraiment
  at TestExecute.Default.OnLoad (System.EventArgs e) [0x00000] 

and on mono 1.9 there's another bug because all stack trace is still present


-- 
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