[2005] in java-interest

home help back first fref pref prev next nref lref last post

Re: throws declataration in Java/beta

daemon@ATHENA.MIT.EDU (dufourd@enst.enst.fr)
Thu Sep 21 15:34:15 1995

From: dufourd@enst.enst.fr
To: "Paul Ambrose" <pambrose@weblogic.com>
Cc: dufourd@enst.enst.fr, java-interest@java.sun.com
In-Reply-To: Your message of "Wed, 20 Sep 95 23:17:35 -0000."
             <199509210617.XAA14046@blob.best.net> 
Date: Thu, 21 Sep 95 18:47:44 +0200

>This means that you can NEVER throw an exception from a 
>toString() method because Object.toString() doesn't throw
>any exceptions.

This is my experience too, and this language/compiler design decision
seems pretty lame to me. Another thing you cannot do is ask for the
current thread to sleep when you are in the run method because the
interface Runnable does not specify "throws InterruptedException"...
I am sure there are lots of other such examples.
JC
------------------------------------------Java, Lisp & Theater----------------
 Jean-Claude Dufourd	Departement Electronique,ENST	Tel: +33 1 45 81 78 07
 46 rue Barrault, 75013 Paris				Fax: +33 1 45 80 40 36
 Email: dufourd@elec.enst.fr    URL: http://www-elec.enst.fr/~dufourd/jcd.html
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post