ComputedConstant -- no pre-set supplier exists?

David Alayachew davidalayachew at gmail.com
Mon Jul 31 14:41:12 UTC 2023


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?

On Mon, Jul 31, 2023 at 9:53 AM Per-Ake Minborg <per-ake.minborg at oracle.com>
wrote:

> Thanks for bringing this to our attention. There is always a pre-set
> supplier. We will fix it. /Per
> ------------------------------
> *From:* leyden-dev <leyden-dev-retn at openjdk.org> on behalf of David
> Alayachew <davidalayachew at gmail.com>
> *Sent:* Monday, July 31, 2023 3:13 PM
> *To:* leyden-dev <leyden-dev at openjdk.org>
> *Subject:* ComputedConstant -- no pre-set supplier exists?
>
>
> Hello Leyden Dev Team,
>
> I was looking at the documentation for ComputedConstant, and I was a
> little surprised to see this snippet in the javadoc for
> ComputedConstant::get.
>
> "If no attempt to bind a value was made previously and no pre-set supplier
> exists, throws a NoSuchElementException."
>
> 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?
>
> Thank you for your time and help!
> David Alayachew
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/leyden-dev/attachments/20230731/3e06ae84/attachment.htm>


More information about the leyden-dev mailing list