<div dir="ltr"><div class="gmail_default" style="font-family:monospace">Anytime. I have another question that isn't worth creating a new thread for. The API mentions repeatedly that it can throw Error. Why Error specifically?<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 31, 2023 at 9:53 AM Per-Ake Minborg <<a href="mailto:per-ake.minborg@oracle.com">per-ake.minborg@oracle.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-1303114455323746601">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Thanks for bringing this to our attention. There is always a pre-set supplier. We will fix it. /Per</div>
<div id="m_-1303114455323746601appendonsend"></div>
<hr style="display:inline-block;width:98%">
<div id="m_-1303114455323746601divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> leyden-dev <<a href="mailto:leyden-dev-retn@openjdk.org" target="_blank">leyden-dev-retn@openjdk.org</a>> on behalf of David Alayachew <<a href="mailto:davidalayachew@gmail.com" target="_blank">davidalayachew@gmail.com</a>><br>
<b>Sent:</b> Monday, July 31, 2023 3:13 PM<br>
<b>To:</b> leyden-dev <<a href="mailto:leyden-dev@openjdk.org" target="_blank">leyden-dev@openjdk.org</a>><br>
<b>Subject:</b> ComputedConstant -- no pre-set supplier exists?</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div style="font-family:monospace"><br>
Hello Leyden Dev Team,<br>
<br>
I was looking at the documentation for ComputedConstant, and I was a little surprised to see this snippet in the javadoc for ComputedConstant::get.<br>
<br>
"If no attempt to bind a value was made previously and no pre-set supplier exists, throws a NoSuchElementException."<br>
<br>
What does no pre-set Supplier mean? Do they mean if the Supplier is null? Or do they mean that we have the ability to create a ComputedConstant that has not yet been provided a Supplier? Something else?</div>
<div style="font-family:monospace"><br>
</div>
<div style="font-family:monospace">Thank you for your time and help!</div>
<div style="font-family:monospace">David Alayachew<br>
</div>
</div>
</div>
</div>
</div></blockquote></div>