logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject cvs commit: logging-log4j/src/java/org/apache/log4j/spi/location LegacyExtractor.java
Date Fri, 10 Sep 2004 15:09:19 GMT
ceki        2004/09/10 08:09:19

  Modified:    docs     HISTORY
               src/java/org/apache/log4j/spi/location LegacyExtractor.java
  Log:
   - Fixed bug #15585 relative to location information extraction on the AS400. The fix
     was contributed by Patrice Kolata. [*]
  
  Revision  Changes    Path
  1.113     +3 -0      logging-log4j/docs/HISTORY
  
  Index: HISTORY
  ===================================================================
  RCS file: /home/cvs/logging-log4j/docs/HISTORY,v
  retrieving revision 1.112
  retrieving revision 1.113
  diff -u -r1.112 -r1.113
  --- HISTORY	10 Sep 2004 14:57:24 -0000	1.112
  +++ HISTORY	10 Sep 2004 15:09:19 -0000	1.113
  @@ -8,6 +8,9 @@
      [D] Changes affect a method or property which was previously marked as 
          deprecated.
    
  + - Fixed bug #15585 relative to location information extraction on the AS400. The fix
  +   was contributed by Patrice Kolata. [*]
  +  
    - Log4j will now automatically include stack traces for nested
      exceptions. Log4j extends the automatic nested exception printing
      available in JDK 1.4 to nested exceptions accessible through methods
  
  
  
  1.4       +7 -2      logging-log4j/src/java/org/apache/log4j/spi/location/LegacyExtractor.java
  
  Index: LegacyExtractor.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/spi/location/LegacyExtractor.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- LegacyExtractor.java	10 Sep 2004 14:57:24 -0000	1.3
  +++ LegacyExtractor.java	10 Sep 2004 15:09:19 -0000	1.4
  @@ -41,6 +41,11 @@
     }
   
     static void extract(LocationInfo li, Throwable t, String fqnOfCallingClass) {
  +    // on AS400, package path separator in stack trace is not dot '.', 
  +    // but slash '/'
  +    if (PlatformInfo.isOnAS400()) {
  +      fqnOfCallingClass = fqnOfCallingClass.replace('.', '/');
  +    }
       String s;
   
       // Protect against multiple access to sw.
  @@ -84,8 +89,8 @@
       }
   
       // VA has a different stack trace format which doesn't
  -    // need to skip the inital 'at'
  -    if (!PlatformInfo.isInVisualAge()) {
  +    // need to skip the inital 'at'. The same applied to AS400.
  +    if ((!PlatformInfo.isInVisualAge()) && (!PlatformInfo.isOnAS400())) {
         // back up to first blank character
         ibegin = s.lastIndexOf("at ", iend);
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message