stack overflow & null pointer exceptions

Elmar Haneke elmar@haneke.de
Thu Apr 8 02:38:00 GMT 1999


> Personally, I'd say that consciously causing and catching NullPointerExceptions
> is bad programming style; but I've come across at least two large pieces
> of Java software that relied on it.

There should be an Mechanism to handle such errors if they occurr.
Therminating the complete process with coredump would be an bad
alternative, especially in an multithreaded system. Imagine an Server
handling connections in multiple threads. If one of these threads does
crash it sould be possible to free its ressources and continue work.
Elmar


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /