This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the GCJ project. See the GCJ home page for more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: stack overflow & null pointer exceptions


> 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