RFR: 8310892: ScopedValue throwing StructureViolationException should be clearer [v3]
Jaikiran Pai
jpai at openjdk.org
Mon Jul 10 06:26:57 UTC 2023
On Mon, 10 Jul 2023 06:13:02 GMT, Alan Bateman <alanb at openjdk.org> 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
More information about the core-libs-dev
mailing list