Address post-integration comments for Stable Values

XMLWordPrintable

    • Type: CSR
    • Resolution: Approved
    • Priority: P4
    • 25
    • Component/s: core-libs
    • None
    • behavioral
    • minimal
    • None. This is only a documentation update with no behavioral changes. The Stable Value feature has never been present before.
    • Java API
    • SE

      Summary

      This CSR covers a missing @throws in the StableValue docs.

      Problem

      A @throws was missing in the StableValue docs.

      Solution

      Update the specifications to include the @throws

      Specification

      <pre> diff --git a/src/java.base/share/classes/java/lang/StableValue.java b/src/java.base/share/classes/java/lang/StableValue.java index b12d6f5e92128..4abcafd13b493 100644 --- a/src/java.base/share/classes/java/lang/StableValue.java +++ b/src/java.base/share/classes/java/lang/StableValue.java @@ -519,6 +515,9 @@ public sealed interface StableValue<T> * * @param contents to set * @throws IllegalStateException if the contents was already set + * @throws IllegalStateException if a supplier invoked by {@link #orElseSet(Supplier)} + * recursively attempts to set this stable value by calling this method + * directly or indirectly. */ void setOrThrow(T contents); </pre>

            Assignee:
            Per-Ake Minborg
            Reporter:
            Per-Ake Minborg
            Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: