United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4722178 (spec) Tighten specifications of file-opening constructors
JDK-4722178 : (spec) Tighten specifications of file-opening constructors

Details
Type:
Bug
Submit Date:
2002-07-29
Status:
Resolved
Updated Date:
2003-12-19
Project Name:
JDK
Resolved Date:
2003-12-19
Component:
core-libs
OS:
generic
Sub-Component:
java.io
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
1.4.0_03
Fixed Versions:
5.0 (b32)

Related Reports
Relates:
Relates:

Sub Tasks

Description
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.

                                    

Comments
EVALUATION

We'll do this in Tiger.  -- ###@###.### 2002/7/30
                                     
196-10-07 0
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
tiger
tiger-beta

FIXED IN:
tiger-beta

INTEGRATED IN:
tiger-b32
tiger-beta


                                     
2004-06-14



Hardware and Software, Engineered to Work Together