|
Quick Lists
|
|
Bug ID:
|
4130498
|
|
Votes
|
0
|
|
Synopsis
|
java.io.File.createNewFile: Atomically create a new, empty file if none exists
|
|
Category
|
java:classes_io
|
|
Reported Against
|
1.2beta4
|
|
Release Fixed
|
1.2(1.2beta4)
|
|
State
|
11-Closed,
Unverified,
bug
|
|
Priority:
|
2-High
|
|
Related Bugs
|
4024206
|
|
Submit Date
|
19-APR-1998
|
|
Description
|
/**
* Atomically creates a new, empty file named by this abstract pathname if
* and only if a file with this name does not yet exist. The check for the
* existence of the file and the creation of the file if it does not exist
* are a single operation that is atomic with respect to all other
* filesystem activities that might affect the file. This method, in
* combination with the <code>{@link #deleteOnExit}</code> method, can
* therefore serve as the basis for a simple but reliable cooperative
* file-locking protocol.
*
* @return <code>true</code> if the named file did not exist and was
* successfully created; <code>false</code> if the named file
* already exists or if an I/O error occurred
*
* @throws SecurityException
* If a security manager exists and its <code>{@link
* java.lang.SecurityManager#checkWrite}</code> method denies
* write access to the file
*
* @since JDK1.2
*/
public boolean createNewFile();
|
|
Work Around
|
N/A
|
|
Evaluation
|
Waiting for review and CCC approval. -- xxxxx@xxxxx 4/19/1998
Done. -- xxxxx@xxxxx 5/14/1998
|
|
Comments
|
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |