You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by do...@apache.org on 2002/11/07 08:29:26 UTC

cvs commit: jakarta-avalon-excalibur/sourceresolve/src/java/org/apache/excalibur/source SourceException.java

donaldp     2002/11/06 23:29:26

  Modified:    sourceresolve/src/java/org/apache/excalibur/source
                        SourceException.java
  Log:
  Remove overidden printStackTrace methods as they caused chaos in JDK1.4 where the causes were already output in printStackTrace
  
  Revision  Changes    Path
  1.4       +1 -42     jakarta-avalon-excalibur/sourceresolve/src/java/org/apache/excalibur/source/SourceException.java
  
  Index: SourceException.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/sourceresolve/src/java/org/apache/excalibur/source/SourceException.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SourceException.java	6 Jul 2002 03:55:06 -0000	1.3
  +++ SourceException.java	7 Nov 2002 07:29:26 -0000	1.4
  @@ -8,8 +8,6 @@
   
   package org.apache.excalibur.source;
   
  -import java.io.PrintStream;
  -import java.io.PrintWriter;
   import org.apache.avalon.framework.CascadingException;
   
   /**
  @@ -41,44 +39,5 @@
       public SourceException( final String message, final Throwable throwable )
       {
           super( message, throwable );
  -    }
  -
  -    public String toString()
  -    {
  -        final StringBuffer sb = new StringBuffer();
  -        sb.append( super.toString() );
  -        if( null != getCause() )
  -        {
  -            sb.append( ": " );
  -            sb.append( getCause().toString() );
  -        }
  -        return sb.toString();
  -    }
  -
  -    public void printStackTrace()
  -    {
  -        super.printStackTrace();
  -        if( getCause() != null )
  -        {
  -            getCause().printStackTrace();
  -        }
  -    }
  -
  -    public void printStackTrace( PrintStream s )
  -    {
  -        super.printStackTrace( s );
  -        if( getCause() != null )
  -        {
  -            getCause().printStackTrace( s );
  -        }
  -    }
  -
  -    public void printStackTrace( PrintWriter s )
  -    {
  -        super.printStackTrace( s );
  -        if( getCause() != null )
  -        {
  -            getCause().printStackTrace( s );
  -        }
       }
   }
  
  
  

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