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

David Lloyd (JIRA) jira-events at lists.jboss.org
Mon Aug 22 10:24:17 EDT 2011


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