String::transform spec clarification

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 12
    • Affects Version/s: 12
    • Component/s: core-libs
    • b22
    • 12
    • b28

        String::transform spec doesn't mention - what happens if function throws an exception?

        E.g.

        Function<String, String> function = str -> {throw new RuntimeException();};
        "abc".transform(function);

        This code throws RunTimeException when executed.
        However String::transform spec has no mention that it can throw possible exception(s) thrown by function

              Assignee:
              Jim Laskey
              Reporter:
              Durgesh Singh (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: