commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 16283] - Inproper use of Exception
Date Sat, 01 Feb 2003 20:43:42 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16283>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16283

Inproper use of Exception





------- Additional Comments From dimiter@blue-edge.bg  2003-02-01 20:43 -------
I think that you're mistaking OO with strictly typed programming.
While C++ and Eiffel are two 
of the textbook OO languages, and they both are strictly typed, there are a lot of dynamically

typed OO langues. Smalltalk and Python to for example. As you said, I'm not going to give
a lesson on 
the advantages of the dynamic typing. 

We all realize that Java is mostly static language, but 
it doesn't hurt to break the rules when it makes our life easier. E.g. typical case is Runnable.
If 
it did allow to throw throwable then I shouldn't have to write:

new Runnable{
  public void 
run{
    try{
       somethingThatMightGoWrongAndTheresNothingICanDo();
    } 
catch(FatalException fx) { 
       throw new WrappingError(fx);
    }
  }
}

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message