Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8358688 HttpClient: Simplify file streaming in RequestPublishers.FilePublisher
  3. JDK-8359215

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

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Unresolved
    • Icon: P4 P4
    • 26
    • 26
    • 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.

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

              Created:
              Updated: