src/share/classes/java/lang/ArithmeticException.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1994, 2008, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1994, 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 28,54 **** /** * Thrown when an exceptional arithmetic condition has occurred. For * example, an integer "divide by zero" throws an * instance of this class. * * @author unascribed * @since JDK1.0 */ ! public ! class ArithmeticException extends RuntimeException { private static final long serialVersionUID = 2256477558314496007L; /** ! * Constructs an <code>ArithmeticException</code> with no detail * message. */ public ArithmeticException() { super(); } /** ! * Constructs an <code>ArithmeticException</code> with the specified * detail message. * * @param s the detail message. */ public ArithmeticException(String s) { --- 28,57 ---- /** * Thrown when an exceptional arithmetic condition has occurred. For * example, an integer "divide by zero" throws an * instance of this class. * + * {@code ArithmeticException} objects may be constructed by the + * virtual machine as if {@linkplain Throwable#Throwable(String, + * Throwable, boolean) suppression were disabled}. + * * @author unascribed * @since JDK1.0 */ ! public class ArithmeticException extends RuntimeException { private static final long serialVersionUID = 2256477558314496007L; /** ! * Constructs an {@code ArithmeticException} with no detail * message. */ public ArithmeticException() { super(); } /** ! * Constructs an {@code ArithmeticException} with the specified * detail message. * * @param s the detail message. */ public ArithmeticException(String s) {