Netbeans + e.printStackTrace();
807580Jul 10 2010 — edited Aug 4 2010Greetings,
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.