<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p>As a followup, the code to generate diags-examples.html needed
some TLC, and was fixed in <a href="https://bugs.openjdk.org/browse/JDK-8296137" style="color:
#3b73af; text-decoration: none">JDK-8296137</a>.</p>
<p>The command to generate the report is effectively this:</p>
<p>JAVA_HOME=$JDK $ANT \<br>
-Dlangtools.jdk.home=$JDK \<br>
-f make/langtools/diags-examples.xml<br>
</p>
<p>where:
</p>
<ul>
<li>the current directory is the root of the OpenJDK repo</li>
<li>ANT refers to a recent executable for Ant,<br>
</li>
<li>JDK refers to a build of JDK in the same repo containing the
examples directory</li>
</ul>
<p>The report will be written to <font face="monospace">build/langtools/diags-examples/</font><br>
</p>
<div class="moz-cite-prefix">-- Jon<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">On 10/3/22 1:22 PM, Jonathan Gibbons
wrote:<br>
</div>
<blockquote type="cite" cite="mid:d13c8ca2-9602-8656-33fa-2eabcae9611a@oracle.com">
<p>It's generated by the code in
open/test/langtools/tools/javac/diags/.</p>
<p>There are various classes there, like RunExamples.java,
CheckExamples.java etc. You are probably looking for
RunExamples.java; there are comments in the code on how to use
it.<br>
</p>
<p>-- Jon<br>
</p>
<div class="moz-cite-prefix">On 10/3/22 7:31 AM, Ethan McCue
wrote:<br>
</div>
<blockquote type="cite" cite="mid:CA+NR86hzKmTDQQm93jU+g-KmE-f9h807AnzqPAFPnY9UJEV+Vw@mail.gmail.com">
<div dir="ltr">Hey all,<br>
<br>
My group stumbled upon this page with a bunch of error
examples in a nice presentable format.<br>
<br>
<a class="gmail-anchor-1MIwyf gmail-anchorUnderlineOnHover-2qPutX moz-txt-link-freetext" title="https://cr.openjdk.java.net/~jjg/diags-examples.html" href="https://cr.openjdk.java.net/~jjg/diags-examples.html" rel="noreferrer noopener" target="_blank" role="button" tabindex="0" style="margin:0px;padding:0px;border:0px;font-family:Whitney,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:16px;vertical-align:baseline;outline:0px;word-break:break-word;white-space:break-spaces;background-color:rgba(4,4,5,0.07)" moz-do-not-send="true">https://cr.openjdk.java.net/~jjg/diags-examples.html</a><br>
<br>
My suspicion is that this was generated by something in the
codebase - if so does anyone know the command of the top of
their head?</div>
</blockquote>
</blockquote>
</body>
</html>