Bug 15311 - mono-api-html doesn't properly render generic methods.
Summary: mono-api-html doesn't properly render generic methods.
Status: RESOLVED FIXED
Alias: None
Product: Tools
Classification: Mono
Component: other ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-10-09 17:04 UTC by Jonathan Pryor
Modified: 2013-10-09 20:31 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Jonathan Pryor 2013-10-09 17:04:47 UTC
mono-api-html.exe doesn't show generic type parameters for generic methods.

$ cat > b.cs <<EOF
  namespace A {
    public static class C {
    }
  }
EOF
$ mcs -t:library -out:A.dll b.cs
$ mono-api-info A.dll > b.xml
$ cat > a.cs <<EOF
  namespace A {
    public static class C {
      public static T M<T>(T a, T b)
      {
        return a;
      }
    }
  }
EOF
$ mcs -t:library -out:A.dll a.cs
$ mono-api-info A.dll > a.xml
$ mono mono-api-diff.xml b.xml a.xml

Actual output:

<h1>A.dll</h1>
<h2>Namespace A</h2>
<h3>Type Changed: A.C</h3>
<p>Added methods:</p><pre>
	public static T M (T a, T b);
</pre>

Expected output:

<h1>A.dll</h1>
<h2>Namespace A</h2>
<h3>Type Changed: A.C</h3>
<p>Added methods:</p><pre>
	public static T M<T> (T a, T b);
</pre>
Comment 1 Sebastien Pouliot 2013-10-09 20:31:56 UTC
Fixed in master 4407f88ea62b3beae0606bf679a6994439b0a0ca

New output:

<h1>A.dll</h1>
<h2>Namespace A</h2>
<h3>Type Changed: A.C</h3>
<p>Added methods:</p><pre>
	public static T M&lt;T&gt; (T a, T b);
</pre>

Thanks!