[Mono-bugs] [Bug 474252] New: Invalid exception from Mono.CSharp.Evaluator.Evaluate

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Feb 10 04:41:45 EST 2009


           Summary: Invalid exception from Mono.CSharp.Evaluator.Evaluate
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.2.x
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: Chuck.Esterbrook at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US;
rv: Gecko/2009011912 Firefox/3.0.6

I took the example straight from the web page. Compiles fine, but throws an
exception when run.

gmcs -r:Mono.CSharp x-mono-csharp.cs
using System;
using Mono.CSharp;
class P {    
    static void Main() {
        Evaluator.Run("using System;");
        var sum = (int)Evaluator.Evaluate("1+2");

Reproducible: Always

Steps to Reproduce:
1. Compile the above program
2. Run it
3. Observe the exception
Actual Results:  
Unhandled Exception: System.ArgumentException: Syntax error on input: partial
  at Mono.CSharp.Evaluator.Evaluate (System.String input) [0x00000] 
  at P.Main () [0x00000] 

Expected Results:  
prints 3

Also, Bugzilla needs a Component under "Mono: Class Libraries" for Mono.CSharp
as well as "Other".

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