<div dir="ltr">Hi,<div><br></div><div>I tried to find a way to submit a bug report but failed to do so. Apparently, issues are not enabled on the GitHub repository - contrary to what is mentioned in the readme.md.</div><div><br></div><div>Maybe this mailing list is the right channel to discuss my observations:</div><div><br></div><div>From my understanding, the results of GraphLayout.totalSize and GraphStats.totalSize should be the same for a given object graph. However, there is some inconsistency. The following test case fails for me. I'm not sure if that's a misunderstanding on my end or a bug in the processing of arrays:</div><div><br></div><div><font face="monospace" style="background-color:rgb(255,255,255)" color="#000000"><span class="gmail-s1" style="font-size:12px"><span class="gmail-Apple-tab-span" style="white-space:pre">  </span></span><span style="font-size:12px">@Test</span><br></font></div><div>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal"><font face="monospace" style="background-color:rgb(255,255,255)" color="#000000"><span class="gmail-Apple-tab-span" style="white-space:pre">    </span><span class="gmail-s2" style=""><b>public</b></span> <span class="gmail-s2" style=""><b>void</b></span> statsVsLayout() {</font></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal"><font face="monospace" style="background-color:rgb(255,255,255)" color="#000000"><span class="gmail-Apple-tab-span" style="white-space:pre">    </span><span class="gmail-Apple-tab-span" style="white-space:pre">      </span>Object[] <span class="gmail-s3" style="">objects</span> = <span class="gmail-s2" style=""><b>new</b></span> Object[1];</font></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal"><font face="monospace" style="background-color:rgb(255,255,255)" color="#000000"><span class="gmail-Apple-tab-span" style="white-space:pre">    </span><span class="gmail-Apple-tab-span" style="white-space:pre">      </span><span class="gmail-s3" style="">objects</span>[0] = <span class="gmail-s2" style=""><b>new</b></span> String[0];</font></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal"><font face="monospace" style="background-color:rgb(255,255,255)" color="#000000"><span class="gmail-Apple-tab-span" style="white-space:pre">    </span><span class="gmail-Apple-tab-span" style="white-space:pre">      </span>GraphLayout <span class="gmail-s3" style="">layout</span> = GraphLayout.<i>parseInstance</i>(<span class="gmail-s4" style=""><b>new</b></span><span class="gmail-s5" style=""> Object[] { </span><span class="gmail-s6" style="">objects</span><span class="gmail-s5" style=""> }</span>);</font></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal"><font face="monospace" style="background-color:rgb(255,255,255)" color="#000000"><span class="gmail-Apple-tab-span" style="white-space:pre">    </span><span class="gmail-Apple-tab-span" style="white-space:pre">      </span>GraphStats <span class="gmail-s3" style="">stats</span> = GraphStats.<i>parseInstance</i>(<span class="gmail-s4" style=""><b>new</b></span><span class="gmail-s5" style=""> Object[] { </span><span class="gmail-s6" style="">objects</span><span class="gmail-s5" style=""> }</span>);</font></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal"><font face="monospace" style="background-color:rgb(255,255,255)" color="#000000"><span class="gmail-Apple-tab-span" style="white-space:pre">    </span><span class="gmail-Apple-tab-span" style="white-space:pre">      </span><i>assertEquals</i>(<span class="gmail-s3" style="">layout</span>.totalSize(), <span class="gmail-s3" style="">stats</span>.totalSize());</font></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal"><font face="monospace" style="background-color:rgb(255,255,255)" color="#000000"><span class="gmail-Apple-tab-span" style="white-space:pre">    </span><span class="gmail-Apple-tab-span" style="white-space:pre">      </span><i>assertEquals</i>(<span class="gmail-s3" style="">layout</span>.totalCount(), <span class="gmail-s3" style="">stats</span>.totalCount());</font></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal"><font face="monospace" style="background-color:rgb(255,255,255)" color="#000000"><span class="gmail-Apple-tab-span" style="white-space:pre">    </span>}</font></p><p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal"><font face="monospace" style="background-color:rgb(255,255,255)" color="#000000"><br></font></p></div><div><br></div><div><br></div><div>Best</div><div>Sebastian</div></div>