Unclear wording in docs for recursion for List, Map and LazyConstant

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P3
    • 27
    • Affects Version/s: 26
    • Component/s: core-libs

      The factory methods (List|Map)::ofLazy` and `LazyConstant::get` specify that an `IllegalStateException` is thrown upon a recursive invocation of the computing function. However, it is not clear that this *only* applies if recursion is made through the lazy entity (and not direct recursion on the computing function itself).

      For example, we could replace the word "or" with the word "via" in the `List::ofLazy` specification so that it says:

           * If the provided computing function recursively calls itself via the returned
           * lazy list for the same index, an {@linkplain IllegalStateException}
           * will be thrown.

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

              Created:
              Updated: