[crac] RFR: Fix ordering of invocation on Resources [v8]

Anton Kozlov akozlov at openjdk.org
Tue May 9 18:24:53 UTC 2023


On Thu, 4 May 2023 20:41:11 GMT, Radim Vansa <duke at openjdk.org> wrote:

>> src/java.base/share/classes/javax/crac/package-info.java line 87:
>> 
>>> 85:  *   <li>When an exception is thrown during notificaion, it is caught by the {@code Context} and is suppressed by a {@code CheckpointException} or {@code RestoreException}, depends on the throwing method.
>>> 86:  *   </li>
>>> 87:  *   <li>When the {@code Resource} is a {@code Context} and it throws {@code CheckpointException} or {@code RestoreException}, exceptions suppressed by the original exception are suppressed by another {@code CheckpointException} or {@code RestoreException}, depends on the throwing method.
>> 
>> This sepcification for child context was lost
>
> Intentionally. With reporting the exception centrally there's no reason to inform parent context about an error in a resource in child component.

The reply no longer valid. Please keep modifications in the javadoc to minimum as well

-------------

PR Review Comment: https://git.openjdk.org/crac/pull/60#discussion_r1188966993


More information about the crac-dev mailing list