[concurrency-interest] Exception throw but not speficied in the method contract of its interface

Hanson Char hanson_char@yahoo.com
Sat, 9 Oct 2004 10:36:35 +1000


In general Runtime exceptions such as IllegalStateException are considered
"unchecked" exceptions, and therefore can always be thrown without being
specified in the interface.

H

-----Original Message-----
From: concurrency-interest-admin@cs.oswego.edu
[mailto:concurrency-interest-admin@cs.oswego.edu]On Behalf Of Jean
Morissette
Sent: Saturday, 9 October 2004 8:09 AM
To: concurrency-interest@altair.cs.oswego.edu
Subject: [concurrency-interest] Exception throw but not speficied in the
method contract of its interface


Hi all, the method add(Object) of class AbstractQueue can throw an
IllegalStateException that is not specified in the contract of its
interface Collection.  Is-it normal? -Jean
_______________________________________________ Concurrency-interest mailing
list Concurrency-interest@altair.cs.oswego.edu
http://altair.cs.oswego.edu/mailman/listinfo/concurrency-interest