Sascha Brawer <[EMAIL PROTECTED]> writes: > Hi all, > > if the signature of a JDK method declares to throw some RuntimeException, > should the Classpath do so, too? > > For example, java.awt.Toolkit.createButton declares to throw > java.awt.HeadlessException in the JDK, but not in Classpath. > HeadlessException extends java.lang.RuntimeException.
It's not necessary to use a 'throws' clause with RuntimeException or subclasses. Brian -- Brian Jones <[EMAIL PROTECTED]> _______________________________________________ Classpath mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/classpath