summaryrefslogtreecommitdiffstats
path: root/libjava/java/util/zip/ZipFile.java
diff options
context:
space:
mode:
authormkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2003-11-26 21:55:27 +0000
committermkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2003-11-26 21:55:27 +0000
commitc04ba3c6dd5d01bb8e01cddb96bdad308bc8c212 (patch)
treeebf41ec8c24a6a98f8912cee80585a2b99f53526 /libjava/java/util/zip/ZipFile.java
parent1ae409781cabd4da5a4b07822e9555bdd581ebf0 (diff)
downloadppe42-gcc-c04ba3c6dd5d01bb8e01cddb96bdad308bc8c212.tar.gz
ppe42-gcc-c04ba3c6dd5d01bb8e01cddb96bdad308bc8c212.zip
2003-11-26 David Belanger <dbelan2@cs.mcgill.ca>
* java/util/zip/ZipFile (Zipfile(File)): Set file path as name. (ZipFile(File,int)): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73965 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/util/zip/ZipFile.java')
-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 b6bc5414d08..50f489fdb5b 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()
{
OpenPOWER on IntegriCloud