< prev index next >

src/java.base/share/classes/java/net/JarURLConnection.java

Print this page

        

@@ -213,11 +213,12 @@
     /**
      * Return the JAR file for this connection.
      *
      * @return the JAR file for this connection. If the connection is
      * a connection to an entry of a JAR file, the JAR file object is
-     * returned
+     * returned. The JAR file is also returned if the connection to
+     * a JAR file entry fails, but the JAR file itself is accessible.
      *
      * @throws    IOException if an IOException occurs while trying to
      * connect to the JAR file for this connection.
      *
      * @see #connect

@@ -226,11 +227,14 @@
 
     /**
      * Returns the Manifest for this connection, or null if none.
      *
      * @return the manifest object corresponding to the JAR file object
-     * for this connection.
+     * for this connection. If the connection is a connection to an
+     * entry of a JAR file, the manifest object is also returned if the
+     * connection to a JAR file entry fails, but the JAR file itself is
+     * accessible.
      *
      * @throws    IOException if getting the JAR file for this
      * connection causes an IOException to be thrown.
      *
      * @see #getJarFile

@@ -246,11 +250,12 @@
      *
      * @return the JAR entry object for this connection, or null if
      * the JAR URL for this connection points to a JAR file.
      *
      * @throws    IOException if getting the JAR file for this
-     * connection causes an IOException to be thrown.
+     * connection causes an IOException to be thrown, or if the
+     * connection to a JAR file entry fails.
      *
      * @see #getJarFile
      * @see #getJarEntry
      */
     public JarEntry getJarEntry() throws IOException {
< prev index next >