bayard      2004/09/30 00:03:25

  Modified:    lang/src/java/org/apache/commons/lang/exception
                        ExceptionUtils.java NestableDelegate.java
  Log:
  rolled back BUG#30929 pending opinions
  
  Revision  Changes    Path
  1.41      +4 -2      
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.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- ExceptionUtils.java       30 Sep 2004 06:21:40 -0000      1.40
  +++ ExceptionUtils.java       30 Sep 2004 07:03:25 -0000      1.41
  @@ -434,7 +434,9 @@
               return -1;
           }
           for (int i = fromIndex; i < throwables.length; i++) {
  -            if (type.isAssignableFrom(throwables[i].getClass())) {
  +// TODO: decide on whether to include this
  +//            if (type.isAssignableFrom(throwables[i].getClass())) {
  +            if (throwables[i].getClass().equals(type)) {
                   return i;
               }
           }
  
  
  
  1.25      +4 -2      
jakarta-commons/lang/src/java/org/apache/commons/lang/exception/NestableDelegate.java
  
  Index: NestableDelegate.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/exception/NestableDelegate.java,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- NestableDelegate.java     30 Sep 2004 06:21:40 -0000      1.24
  +++ NestableDelegate.java     30 Sep 2004 07:03:25 -0000      1.25
  @@ -236,7 +236,9 @@
                   + fromIndex + " >= " + throwables.length);
           }
           for (int i = fromIndex; i < throwables.length; i++) {
  -            if (type.isAssignableFrom(throwables[i].getClass())) {
  +// TODO: decide on whether to include this
  +//            if (type.isAssignableFrom(throwables[i].getClass())) {
  +            if (throwables[i].getClass().equals(type)) {
                   return i;
               }
           }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to