< prev index next >

src/java.base/share/classes/java/util/IllegalFormatException.java

Print this page

        

*** 31,42 **** * explicit subtypes of this exception which correspond to specific errors * should be instantiated. * * @since 1.5 */ ! public class IllegalFormatException extends IllegalArgumentException { private static final long serialVersionUID = 18830826L; // package-private to prevent explicit instantiation IllegalFormatException() { } } --- 31,49 ---- * explicit subtypes of this exception which correspond to specific errors * should be instantiated. * * @since 1.5 */ ! public class IllegalFormatException extends IllegalArgumentException implements Cloneable { private static final long serialVersionUID = 18830826L; // package-private to prevent explicit instantiation IllegalFormatException() { } + + @Override + protected IllegalFormatException clone() throws CloneNotSupportedException { + IllegalFormatException ife = (IllegalFormatException) super.clone(); + ife.fillInStackTrace(); + return ife; + } }
< prev index next >