aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/util/zip
diff options
context:
space:
mode:
authorDavid Belanger <dbelan2@cs.mcgill.ca>2003-11-26 21:55:27 +0000
committerMichael Koch <mkoch@gcc.gnu.org>2003-11-26 21:55:27 +0000
commit03e524201551de39342d9275010e91e9891f2314 (patch)
treeebf41ec8c24a6a98f8912cee80585a2b99f53526 /libjava/java/util/zip
parent32ffbe9280fddada892bdd1c0f79479170a12610 (diff)
downloadgcc-03e524201551de39342d9275010e91e9891f2314.zip
gcc-03e524201551de39342d9275010e91e9891f2314.tar.gz
gcc-03e524201551de39342d9275010e91e9891f2314.tar.bz2
ZipFile (Zipfile(File)): Set file path as name.
2003-11-26 David Belanger <dbelan2@cs.mcgill.ca> * java/util/zip/ZipFile (Zipfile(File)): Set file path as name. (ZipFile(File,int)): Likewise. From-SVN: r73965
Diffstat (limited to 'libjava/java/util/zip')
-rw-r--r--libjava/java/util/zip/ZipFile.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/libjava/java/util/zip/ZipFile.java b/libjava/java/util/zip/ZipFile.java
index b6bc541..50f489f 100644
--- a/libjava/java/util/zip/ZipFile.java
+++ b/libjava/java/util/zip/ZipFile.java
@@ -105,7 +105,7 @@ public class ZipFile implements ZipConstants
public ZipFile(File file) throws ZipException, IOException
{
this.raf = new RandomAccessFile(file, "r");
- this.name = file.getName();
+ this.name = file.getPath();
}
/**
@@ -134,7 +134,7 @@ public class ZipFile implements ZipConstants
("OPEN_DELETE mode not supported yet in java.util.zip.ZipFile");
}
this.raf = new RandomAccessFile(file, "r");
- this.name = file.getName();
+ this.name = file.getPath();
}
/**
@@ -438,7 +438,7 @@ public class ZipFile implements ZipConstants
}
/**
- * Returns the name of this zip file.
+ * Returns the (path) name of this zip file.
*/
public String getName()
{