Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Problem with marker for printStackTrace
Problem with marker for printStackTrace [message #911740] Wed, 12 September 2012 08:16 Go to next message
Steve Heldebaume is currently offline Steve Heldebaume
Messages: 1
Registered: September 2012
Junior Member
Hi,
Since the last update of eclipse Juno yesterday, every time now I open a class with a printStackTrace() method call in a catch(Exception) block, I have a java marker problem on the line with this message :
"This try catch block contains one call to e.printStackTrace() and no reference to throw new Exception(e)"
How to deactivate this marker ?
Thanks in advance for your answer
Steve

 try {
   .... 
 } catch (Exception e) {
    e.printStackTrace();
 }


Eclipse version : Juno Release
Build Id : 20120614-1722
Re: Problem with marker for printStackTrace [message #916672 is a reply to message #911740] Wed, 19 September 2012 09:47 Go to previous message
Dani Megert is currently offline Dani Megert
Messages: 3801
Registered: July 2009
Senior Member
On 12.09.2012 10:16, Steve Heldebaume wrote:
> Hi,
> Since the last update of eclipse Juno yesterday, every time now I open
> a class with a printStackTrace() method call in a catch(Exception)
> block, I have a java marker problem on the line with this message :
> "This try catch block contains one call to e.printStackTrace() and no
> reference to throw new Exception(e)"
> How to deactivate this marker ?
> Thanks in advance for your answer
I don't see this in the standard Eclipse. Maybe you installed some
addition plug-ins (FindBugs?) that do this?

Dani
> Steve
>
>
> try {
> .... } catch (Exception e) {
> e.printStackTrace();
> }
>
>
> Eclipse version : Juno Release
> Build Id : 20120614-1722
Previous Topic:Behavior of content assist
Next Topic:Error while saving file
Goto Forum:
  


Current Time: Thu Oct 23 15:19:15 GMT 2014

Powered by FUDForum. Page generated in 0.01941 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software