src/java.base/share/classes/jdk/internal/util/jar/InvalidJarIndexError.java

Print this page
rev 13958 : 8152190: Move sun.misc.JarIndex and InvalidJarIndexException to an internal package
Reviewed-by:

*** 21,60 **** * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ ! package sun.misc; ! ! import java.lang.LinkageError; /** * Thrown if the URLClassLoader finds the INDEX.LIST file of * a jar file contains incorrect information. * ! * @author Zhenghua Li ! * @since 1.3 */ ! public ! class InvalidJarIndexException extends RuntimeException { ! static final long serialVersionUID = -6159797516569680148L; /** ! * Constructs an <code>InvalidJarIndexException</code> with no ! * detail message. */ ! public InvalidJarIndexException() { super(); } /** ! * Constructs an <code>InvalidJarIndexException</code> with the ! * specified detail message. * * @param s the detail message. */ ! public InvalidJarIndexException(String s) { super(s); } } --- 21,54 ---- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ ! package jdk.internal.util.jar; /** * Thrown if the URLClassLoader finds the INDEX.LIST file of * a jar file contains incorrect information. * ! * @since 9 */ ! public class InvalidJarIndexError extends Error { ! static final long serialVersionUID = 0L; /** ! * Constructs an {@code InvalidJarIndexError} with no detail message. */ ! public InvalidJarIndexError() { super(); } /** ! * Constructs an {@code InvalidJarIndexError} with the specified detail message. * * @param s the detail message. */ ! public InvalidJarIndexError(String s) { super(s); } }