Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Netbeans + e.printStackTrace();

807580Jul 10 2010 — edited Aug 4 2010
Greetings,

Yesterday I upgraded to Netbeans 6.9. They have some new features, including new "warnings" (Netbeans will underline your code with a yellow line indicating bad programming practices, or even worse, potentially non-functional code).

Well, it's warning me on a lot of things that I never knew were bad, such as e.printStackTrace within the catch statement of a try catch block. Why exactly is it not a good idea to call e.printStackTrace? I do it nearly every single time I catch an Error, among other things (such as display an error message to the user).

Anyone know? Should I just suppress this warning?

Thank you.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 1 2010
Added on Jul 10 2010
10 comments
2,417 views