[Mono-bugs] [Bug 463303] New: Missing method exception on valid assembly

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Jan 2 13:05:06 EST 2009


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


           Summary: Missing method exception on valid assembly
           Product: Mono: Runtime
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: JIT
        AssignedTo: lupus at novell.com
        ReportedBy: rkvinge at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Repro:
mono <attached executable>

Result:
rolf at linux:> mono test-vb.exe
Main

** (test-vb.exe:4835): WARNING **: Missing method .IBase.S in assembly
/home/rolf/test/interface/test-vb.exe token 6000001

Unhandled Exception: System.TypeLoadException: A type load exception has
occurred.
  at TT.Main (System.String[] cmdargs) [0x00000] 

Neither peverify nor pedump complain about the file.

This is the following VB code (compiled with either vbc or vbnc):
Public Interface IBase
    Sub S()
End Interface
Public Interface IDerived
    Inherits IBase
End Interface
Public Interface IDerivedDerived
    Inherits IDerived
End Interface
Public Class MemberDeclaration2
    Implements IDerivedDerived
    Public Sub S() Implements IBase.S
       Console.WriteLine("SUCCESS")
    End Sub
End Class
Class C(Of X As IBase)
    Overloads Sub Add(ByVal v As X)
        v.S()
    End Sub
End Class
Class TT
    Shared Function Main() As Integer
        Console.WriteLine("Main")
        Dim t As New MemberDeclaration2
        Dim cc As New C(Of IDerivedDerived)
        cc.Add(t)
        Console.WriteLine("Main [Done]")
    End Function
End Class


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