[2010] 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 (Jonathan Payne)
Thu Sep 21 17:06:48 1995

Date: Thu, 21 Sep 1995 11:30:41 -0700
From: jpayne@starwave.com (Jonathan Payne)
To: jpayne@starwave.com
Cc: dufourd@enst.enst.fr, pambrose@weblogic.com, java-interest@java.sun.com
In-Reply-To: <9509211742.AA04221@flim.starwave.com> (jpayne@starwave.com)

> OH .... MY GOD.

Sorry for the confusion.  What I meant by this statement was,

	THIS SUCKS!!!!!!!!!!!!

and

	I HOPE IT WASN'T A MISTAKE

but I will now add for the hell of it,

	I DON'T REALLY KNOW WHAT I AM TALKING ABOUT!

But if I can't sleep in the Run method (as the mail below suggests),
which is something you very commonly want to do, then I think
something is horribly broken.

What's the deal?

> > >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
> -
> Note to Sun employees: this is an EXTERNAL mailing list!
> Info: send 'help' to java-interest-request@java.sun.com
> 
-
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