[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] Patch: FYI: JarURLConnection fixlet
From: |
Tom Tromey |
Subject: |
[cp-patches] Patch: FYI: JarURLConnection fixlet |
Date: |
22 Aug 2005 15:02:32 -0600 |
I'm checking this in.
I looked into the differences between the libgcj and classpath
versions of JarURLConnection. This was the only important one --
JarURLConnection.getJarEntry should return null if there is no entry
specified in the url.
Tom
Index: ChangeLog
from Tom Tromey <address@hidden>
* java/net/JarURLConnection.java (getJarEntry): Return null if no
entry specified.
Index: java/net/JarURLConnection.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/net/JarURLConnection.java,v
retrieving revision 1.22
diff -u -r1.22 JarURLConnection.java
--- java/net/JarURLConnection.java 2 Jul 2005 20:32:39 -0000 1.22
+++ java/net/JarURLConnection.java 22 Aug 2005 21:04:56 -0000
@@ -1,5 +1,5 @@
/* JarURLConnection.java -- Class for manipulating remote jar files
- Copyright (C) 1998, 2002, 2003 Free Software Foundation, Inc.
+ Copyright (C) 1998, 2002, 2003, 2005 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -151,8 +151,9 @@
*/
public JarEntry getJarEntry() throws IOException
{
+ if (entryName == null)
+ return null;
JarFile jarFile = getJarFile();
-
return jarFile != null ? jarFile.getJarEntry(entryName) : null;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] Patch: FYI: JarURLConnection fixlet,
Tom Tromey <=