diff options
author | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-02-27 10:43:47 +0000 |
---|---|---|
committer | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-02-27 10:43:47 +0000 |
commit | 80684a5172d9a64c18ba96ff03ada11b541734ce (patch) | |
tree | bcd54e99a88cd44c72ca6788e743ef4d317e354a /libjava/java/io/File.java | |
parent | de888321f70cda1c965315ae17ebfa43e65b87ca (diff) | |
download | ppe42-gcc-80684a5172d9a64c18ba96ff03ada11b541734ce.tar.gz ppe42-gcc-80684a5172d9a64c18ba96ff03ada11b541734ce.zip |
2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
* java/io/File.java (File(String, String)): For dirPath, treat an
empty String the same as `null'.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32217 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/io/File.java')
-rw-r--r-- | libjava/java/io/File.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libjava/java/io/File.java b/libjava/java/io/File.java index 184c5e0a7f9..c4a4e39a19d 100644 --- a/libjava/java/io/File.java +++ b/libjava/java/io/File.java @@ -79,7 +79,7 @@ public class File implements Serializable { if (name == null) throw new NullPointerException (); - if (dirPath != null) + if (dirPath != null && dirPath.length() > 0) { // Try to be smart about the number of separator characters. if (dirPath.charAt(dirPath.length() - 1) == separatorChar) |