Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8346095

javadoc snippet generation is not reproducible

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 25
    • 25
    • tools
    • None

      There seem to be an (highly unlikely) indeterminism in javadoc snippet generation. I got this discrepancy once on a "cmp-baseline" build (where the JDK incl docs is built twice and then compared):

      Docs Other files with binary differences...
      ./api/java.base/java/lang/classfile/instruction/LabelTarget.html (diff size 1665)
      SHOW DIFF (first 500 lines): $WORKSPACE/build/linux-x64-cmp-baseline/compare-support/docs/./api/java.base/java/lang/classfile/instruction/LabelTarget.html.diff
      --- $WORKSPACE/build/linux-x64-cmp-baseline/images/docs/./api/java.base/java/lang/classfile/instruction/LabelTarget.html 2024-12-12 11:19:38.172528307 +0000
      +++ $WORKSPACE/build/compare-build/linux-x64-cmp-baseline/images/docs/./api/java.base/java/lang/classfile/instruction/LabelTarget.html 2024-12-12 11:31:23.533101564 +0000
      @@ -107,7 +107,7 @@
        
       <div class="snippet-container"><button class="copy snippet-copy" aria-label="Copy snippet" onclick="copySnippet(this)"><span data-copied="Copied!">Copy</span><img src="../../../../../resource-files/copy.svg" alt="Copy snippet"></button>
       <pre class="snippet" id="snippet-java.lang.classfile.instruction.LabelTarget1"><code class="language-java">cob.<a href="../ClassFileBuilder.html#with(E)"><code>with</code></a>(lt);
      -cob.<a href="#label()"><code>label</code></a><a href="../CodeBuilder.html#labelBinding(java.lang.classfile.Label)"><code>Binding</code></a>(lt.<a href="#label()"><code>label</code></a>());
      +cob.<a href="../CodeBuilder.html#labelBinding(java.lang.classfile.Label)"><code>label</code></a><a href="../CodeBuilder.html#labelBinding(java.lang.classfile.Label)"><code>Binding</code></a>(lt.<a href="#label()"><code>label</code></a>());
       </code></pre>
       </div>
       </div>

      Since JDK builds are supposed to be fully reproducible, I'd appreciate that this is fixed.

            nbenalla Nizar Benalla
            ihse Magnus Ihse Bursie
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: