The Artima Developer Community
Sponsored Link

Java Answers Forum
System.exit( int n )

1 reply on 1 page. Most recent reply: Dec 18, 2002 1:45 PM by Matt Gerrans

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
kevin leahy

Posts: 5
Nickname: kevster
Registered: Dec, 2002

System.exit( int n ) Posted: Dec 18, 2002 4:55 AM
Reply to this message Reply
Advertisement
Can anyone point me to any material that deals with this.

I am currently working on an application which crashed leaving no error messages of any kind. I think it may be due to the use of these system.exit commands which are used in many of the libraries the application uses.

I imagine that an error of some kind is occuring in the library and there is a system.exit command as a consequence. Why would someone programme an exit without leaving any error messaging? I have found these commands in reputable code: Apache, IBM, Glue etc..

Can anyone explain?


Matt Gerrans

Posts: 1153
Nickname: matt
Registered: Feb, 2002

Re: System.exit( int n ) Posted: Dec 18, 2002 1:45 PM
Reply to this message Reply
That is just lazy sloppy design. Are you sure these libraries are doing an exit? Another cause of what you are seeing could be a try/catch with an empty catch clause, especially if it is in the entry point.

Flat View: This topic has 1 reply on 1 page
Topic: No such method error Previous Topic   Next Topic Topic: help with a sql statement

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use