[Mono-bugs] [Bug 697940] New: ModuleBuilder.GetSignatureToken generates different token for same signatures

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Jun 3 09:34:21 EDT 2011


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

https://bugzilla.novell.com/show_bug.cgi?id=697940#c0


           Summary: ModuleBuilder.GetSignatureToken generates different
                    token for same signatures
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.10.x
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Minor
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: goldywhite at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24
(KHTML, like Gecko) Chrome/11.0.696.71 Safari/534.24

Calling ModuleBuilder.GetSignatureToken for same SignatureHelper object every
time generates new SignatureToken object with different Token field. This is
unpractical.

Reproducible: Always

Steps to Reproduce:
ModuleBuilder m_moduleBuilder = CreateModule(...);
MethodInfo m =
typeof(string).GetMethod("Insert",BindingFlags.Public|BindingFlags.Instance);
var sh =
SignatureHelper.GetMethodSigHelper(m_moduleBuilder,CallingConventions.ExplicitThis
| CallingConventions.HasThis,m.ReturnType);
var pars = m.GetParameters();
for (var i = 0; i < pars.Length; ++i)
  sh.AddArgument(pars[i].ParameterType);
for (var j = 0; j < 10; ++j)
  Console.WriteLine(m_moduleBuilder.GetSignatureToken(sh).Token);
Actual Results:  
10 different numbers

Expected Results:  
10 identical numbers

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