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

(spec) Tighten specifications of file-opening constructors

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 5.0
    • 1.4.0_03
    • core-libs
    • b32
    • generic
    • generic

      The current specifications of the RandomAccessFile constructors are ambiguous
      with respect to what should happen if the given String or File object names
      both a file and a directory. This is possible on some operating systems, such
      as VMS, in which files and directories have their own name spaces.

      The specification should be revised to say something like:

        @throws FileNotFoundException
        If the mode is <tt>"r"</tt> but the given file object does not denote an
        existing regular file, or if the mode begins with <tt>"rw"</tt> but the
        given file object does not denote an existing, writable regular file and a
        new regular file of that name cannot be created, or if some other error
        occurs while opening or creating the file

      Similar changes should be made, if needed, to the File{In,Out}putStream
      constructors.

            mr Mark Reinhold
            rverabel Raghu Verabelli (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: