Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8062553

(fs spec) Files.write and newBufferedWriter methods missing @throws IAE

XMLWordPrintable

    • b39
    • Verified

        Files.newBufferedWriter is missing @throws IllegalArgumentException and IAE can be thrown when invalid or invalid combinations are options are provided, for example:

        1. When StandardOpenOption.READ is passed
        2. When StandardOpenOption.APPEND and StandardOpenOption.TRUNCATE_EXISTING are passed together
        3. Probably some other combination of options

        Tested with JDK9b35
        Failed JCK test is under development.

              alanb Alan Bateman
              asolodkaya Anastasiya Solodkaya (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: