You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ba...@apache.org on 2002/11/22 21:12:02 UTC

cvs commit: jakarta-commons/lang/src/java/org/apache/commons/lang/exception ExceptionUtils.java

bayard      2002/11/22 12:12:02

  Modified:    lang/src/java/org/apache/commons/lang/exception Tag:
                        LANG_1_0_BRANCH ExceptionUtils.java
  Log:
  Applied bugfix 13527: ExceptionUtils cannot handle J2EE-Exception in a default way.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.15.2.1  +6 -3      jakarta-commons/lang/src/java/org/apache/commons/lang/exception/ExceptionUtils.java
  
  Index: ExceptionUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/exception/ExceptionUtils.java,v
  retrieving revision 1.15
  retrieving revision 1.15.2.1
  diff -u -r1.15 -r1.15.2.1
  --- ExceptionUtils.java	26 Aug 2002 16:40:43 -0000	1.15
  +++ ExceptionUtils.java	22 Nov 2002 20:12:02 -0000	1.15.2.1
  @@ -65,6 +65,8 @@
   import java.util.List;
   import java.util.StringTokenizer;
   
  +import org.apache.commons.lang.SystemUtils;
  +
   /**
    * Utility routines for manipulating <code>Throwable</code> objects.
    *
  @@ -83,7 +85,9 @@
           "getNextException",
           "getTargetException",
           "getException",
  -        "getSourceException"
  +        "getSourceException",
  +        "getRootCause",
  +        "getCausedByException"
       };
   
       /**
  @@ -405,8 +409,7 @@
        */
       static String[] getStackFrames(String stackTrace)
       {
  -        // TODO: Use constant from org.apache.commons.lang.SystemUtils.
  -        String linebreak = System.getProperty("line.separator");
  +        String linebreak = SystemUtils.LINE_SEPARATOR;
           StringTokenizer frames = new StringTokenizer(stackTrace, linebreak);
           List list = new LinkedList();
           while (frames.hasMoreTokens())
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>