[Mono-bugs] [Bug 599601] New: C# 4.0: ResolveContext.IsStatic getter throws NotImplementedException

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Apr 26 06:38:02 EDT 2010


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

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


           Summary: C# 4.0: ResolveContext.IsStatic getter throws
                    NotImplementedException
    Classification: Mono
           Product: Mono: Compilers
           Version: SVN
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: ickard at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=356766)
 --> (http://bugzilla.novell.com/attachment.cgi?id=356766)
Tested with this program

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.2
(KHTML, like Gecko) Chrome/5.0.342.9 Safari/533.2

When testing this small C# 4.0 "dynamic" test program (attached) I wrote, I get
the error described in the attachment below.
(Works fine under .Net 4.0, even if compiled using dcms, so it's really a
problem in Mono.CSharp/Microsoft.CSharp and not in the compiler app per se)

Error encountered:

Unhandled Exception: System.NotImplementedException: The requested feature is
not implemented.
  at Microsoft.CSharp.RuntimeBinder.RuntimeBinderContext.get_IsStatic ()
[0x00000] in <filename unknown>:0 
  at Mono.CSharp.ResolveContext.get_IsStatic () [0x00000] in <filename
unknown>:0 
  at Mono.CSharp.SimpleName.DoSimpleNameResolve (Mono.CSharp.ResolveContext ec,
Mono.CSharp.Expression right_side, Boolean intermediate) [0x00000] in <filename
unknown>:0 
  at Mono.CSharp.SimpleName.SimpleNameResolve (Mono.CSharp.ResolveContext ec,
Mono.CSharp.Expression right_side, Boolean intermediate) [0x00000] in <filename
unknown>:0 
  at Mono.CSharp.SimpleName.DoResolve (Mono.CSharp.ResolveContext ec, Boolean
intermediate) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.ResolveContext ec,
ResolveFlags flags) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Invocation.DoResolve (Mono.CSharp.ResolveContext ec) [0x00000]
in <filename unknown>:0 
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.ResolveContext ec,
ResolveFlags flags) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.ResolveContext rc) [0x00000]
in <filename unknown>:0 
  at Mono.CSharp.DynamicResultCast.DoResolve (Mono.CSharp.ResolveContext ec)
[0x00000] in <filename unknown>:0 
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.ResolveContext ec,
ResolveFlags flags) [0x00000] in <filename unknown>:0 
  at Microsoft.CSharp.RuntimeBinder.CSharpBinder.Bind (System.Type callingType)
[0x00000] in <filename unknown>:0 

Reproducible: Always

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