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: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]
Found By: ---
Repro:
mono <attached executable>
Result:
r...@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.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs