jdk/src/share/classes/java/lang/Throwable.java
changeset 4666 085aef3c09ff
parent 2947 b0135c99348e
child 5506 202f599c92aa
--- a/jdk/src/share/classes/java/lang/Throwable.java	Thu Jan 07 08:14:48 2010 -0800
+++ b/jdk/src/share/classes/java/lang/Throwable.java	Thu Jan 07 19:42:43 2010 -0800
@@ -34,6 +34,11 @@
  * this class or one of its subclasses can be the argument type in a
  * <code>catch</code> clause.
  *
+ * For the purposes of compile-time checking of exceptions, {@code
+ * Throwable} and any subclass of {@code Throwable} that is not also a
+ * subclass of either {@link RuntimeException} or {@link Error} are
+ * regarded as checked exceptions.
+ *
  * <p>Instances of two subclasses, {@link java.lang.Error} and
  * {@link java.lang.Exception}, are conventionally used to indicate
  * that exceptional situations have occurred. Typically, these instances
@@ -142,6 +147,7 @@
  * @author  unascribed
  * @author  Josh Bloch (Added exception chaining and programmatic access to
  *          stack trace in 1.4.)
+ * @jls3 11.2 Compile-Time Checking of Exceptions
  * @since JDK1.0
  */
 public class Throwable implements Serializable {