Release Note: BodyPublishers.ofFile Is Changed to Throw FileNotFoundException Consistently

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Unresolved
    • Priority: P4
    • 26
    • Affects Version/s: 26
    • Component/s: core-libs

      Previously, `java.net.http.HttpRequest.BodyPublishers::ofFile(Path)` could throw `java.nio.file.NoSuchFileException` when the provided `Path` was not associated with the default file system. This inconsistency has been removed by mapping these to `java.io.FileNotFoundException`, in line with the `ofFile` API specification.

            Assignee:
            Unassigned
            Reporter:
            Volkan Yazici
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: