[jboss-jira] [JBoss JIRA] Closed: (LOGTOOL-25) Trim stack traces of message logger and message bundle exception methods

James Perkins (JIRA) jira-events at lists.jboss.org
Mon Aug 22 19:40:18 EDT 2011


     [ https://issues.jboss.org/browse/LOGTOOL-25?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Perkins closed LOGTOOL-25.
--------------------------------



> Trim stack traces of message logger and message bundle exception methods
> ------------------------------------------------------------------------
>
>                 Key: LOGTOOL-25
>                 URL: https://issues.jboss.org/browse/LOGTOOL-25
>             Project: Log Tool
>          Issue Type: Enhancement
>      Security Level: Public(Everyone can see) 
>            Reporter: David Lloyd
>            Assignee: James Perkins
>             Fix For: 1.0.0.Beta8
>
>
> When generating a method which constructs a new exception, before returning the exception, the method should do:
> {code}
>     WhateverException ex = new WhateverException(...);
>     StackTraceElement[] st = ex.getStackTrace();
>     ex.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
>     return ex;
> {code}
> The idea is to trim the logger class name off of the stack.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list