-
Bug
-
Resolution: Cannot Reproduce
-
P4
-
None
-
6-pool
-
generic
-
generic
Please be aware that there is mistake in this page:
http://download.oracle.com/javase/tutorial/essential/io/file.html
In this code:
Path file = ...;
try {
file.createFile(); //Create the empty file with default permissions, etc.
} catch (FileAlreadyExists x) {
System.err.format("file named %s already exists%n", file);
} catch (IOException x) {
//Some other sort of failure, such as permissions.
System.err.format("createFile error: %s%n", x);
}
There is no exception by the name "FileAlreadyExists"
http://download.oracle.com/javase/tutorial/essential/io/file.html
In this code:
Path file = ...;
try {
file.createFile(); //Create the empty file with default permissions, etc.
} catch (FileAlreadyExists x) {
System.err.format("file named %s already exists%n", file);
} catch (IOException x) {
//Some other sort of failure, such as permissions.
System.err.format("createFile error: %s%n", x);
}
There is no exception by the name "FileAlreadyExists"
- duplicates
-
JDK-6985566 io - wrong ex name
-
- Closed
-