[kaffe] CVS kaffe (guilhem): Fixed typo.
Kaffe CVS
cvs-commits at kaffe.org
Fri Apr 16 10:08:03 PDT 2004
PatchSet 4650
Date: 2004/04/16 14:55:19
Author: guilhem
Branch: HEAD
Tag: (none)
Log:
Fixed typo.
* libraries/javalib/java/io/FileOutputStream.java
(FileOutputStream): Fixed a wrong call to checkWrite.
Members:
ChangeLog:1.2226->1.2227
libraries/javalib/java/io/FileOutputStream.java:1.13->1.14
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2226 kaffe/ChangeLog:1.2227
--- kaffe/ChangeLog:1.2226 Fri Apr 16 14:22:22 2004
+++ kaffe/ChangeLog Fri Apr 16 14:55:19 2004
@@ -1,6 +1,11 @@
2004-04-16 Guilhem Lavaux <guilhem at kaffe.org>
* libraries/javalib/java/io/FileOutputStream.java
+ (FileOutputStream): Fixed a wrong call to checkWrite.
+
+2004-04-16 Guilhem Lavaux <guilhem at kaffe.org>
+
+ * libraries/javalib/java/io/FileOutputStream.java
(FileOutputStream): Reorganized constructors. Check whether the
given path is a directory now.
Index: kaffe/libraries/javalib/java/io/FileOutputStream.java
diff -u kaffe/libraries/javalib/java/io/FileOutputStream.java:1.13 kaffe/libraries/javalib/java/io/FileOutputStream.java:1.14
--- kaffe/libraries/javalib/java/io/FileOutputStream.java:1.13 Fri Apr 16 14:22:21 2004
+++ kaffe/libraries/javalib/java/io/FileOutputStream.java Fri Apr 16 14:55:22 2004
@@ -81,7 +81,7 @@
public FileOutputStream (String path, boolean append)
throws SecurityException, FileNotFoundException
{
- this(new File(path), append);
+ this (new File(path), append);
}
/**
@@ -124,7 +124,7 @@
public FileOutputStream (File file)
throws SecurityException, FileNotFoundException
{
- this(file, false);
+ this (file, false);
}
/**
@@ -152,7 +152,7 @@
{
SecurityManager s = System.getSecurityManager();
if (s != null)
- s.checkWrite(path);
+ s.checkWrite(file.getPath());
if (file.isDirectory())
throw new FileNotFoundException(file.getPath() + " is a directory");
More information about the kaffe
mailing list