On Mon, 10 Jul 2023 06:13:02 GMT, Alan Bateman <[email protected]> wrote:
>> src/java.base/share/classes/java/lang/ScopedValue.java line 405:
>>
>>> 403: * as a <em>structure violation</em> when the operation
>>> completes (normally or with an
>>> 404: * exception). In that case, the underlying construct of the
>>> {@code StructuredTaskScope}
>>> 405: * is closed and {@link StructureViolationException} is thrown.
>>
>> Hello Alan, does this mean that the original exception (if any) that caused
>> the completion of the operation would be lost and the caller would instead
>> receive just the `StructureViolationException`?
>
> No, it's just means the SVE is suppressed - see the discussion in the CSR.
Thank you, looks good to me.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/14679#discussion_r1257763217