tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/compat JdkCompat.java Jdk14Compat.java
Date Thu, 15 Apr 2004 01:44:49 GMT
luehe       2004/04/14 18:44:49

  Modified:    util/java/org/apache/tomcat/util/compat JdkCompat.java
                        Jdk14Compat.java
  Log:
  "Hide" Throwable.initCause() inside Jdk14Compat, in order to preserver BC with J2SE 1.3
  
  Revision  Changes    Path
  1.13      +10 -0     jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/compat/JdkCompat.java
  
  Index: JdkCompat.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/compat/JdkCompat.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- JdkCompat.java	3 Apr 2004 06:47:24 -0000	1.12
  +++ JdkCompat.java	15 Apr 2004 01:44:49 -0000	1.13
  @@ -212,4 +212,14 @@
           return result;
       }
   
  +
  +    /**
  +     * Chains the <tt>wrapped</tt> throwable to the <tt>wrapper</tt>
throwable.
  +     *
  +     * @param wrapper The wrapper throwable 
  +     * @param wrapped The throwable to be wrapped
  +     */
  +    public void chainException(Throwable wrapper, Throwable wrapped) {
  +        // do nothing
  +    }
    }
  
  
  
  1.9       +12 -0     jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/compat/Jdk14Compat.java
  
  Index: Jdk14Compat.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/compat/Jdk14Compat.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- Jdk14Compat.java	24 Feb 2004 08:50:05 -0000	1.8
  +++ Jdk14Compat.java	15 Apr 2004 01:44:49 -0000	1.9
  @@ -104,4 +104,16 @@
       public  String [] split(String path, String pat) {
           return path.split(pat);
       }
  +
  +
  +    /**
  +     * Chains the <tt>wrapped</tt> throwable to the <tt>wrapper</tt>
throwable.
  +     *
  +     * @param wrapper The wrapper throwable 
  +     * @param wrapped The throwable to be wrapped
  +     */
  +    public void chainException(Throwable wrapper, Throwable wrapped) {
  +        wrapper.initCause(wrapped);
  +    }
  +
    }
  
  
  

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


Mime
View raw message