Imported GNU Classpath 0.92

2006-08-14  Mark Wielaard  <mark@klomp.org>

       Imported GNU Classpath 0.92
       * HACKING: Add more importing hints. Update automake version
       requirement.

       * configure.ac (gconf-peer): New enable AC argument.
       Add --disable-gconf-peer and --enable-default-preferences-peer
       to classpath configure when gconf is disabled.
       * scripts/makemake.tcl: Set gnu/java/util/prefs/gconf and
       gnu/java/awt/dnd/peer/gtk to bc. Classify
       gnu/java/security/Configuration.java as generated source file.

       * gnu/java/lang/management/VMGarbageCollectorMXBeanImpl.java,
       gnu/java/lang/management/VMMemoryPoolMXBeanImpl.java,
       gnu/java/lang/management/VMClassLoadingMXBeanImpl.java,
       gnu/java/lang/management/VMRuntimeMXBeanImpl.java,
       gnu/java/lang/management/VMMemoryManagerMXBeanImpl.java,
       gnu/java/lang/management/VMThreadMXBeanImpl.java,
       gnu/java/lang/management/VMMemoryMXBeanImpl.java,
       gnu/java/lang/management/VMCompilationMXBeanImpl.java: New VM stub
       classes.
       * java/lang/management/VMManagementFactory.java: Likewise.
       * java/net/VMURLConnection.java: Likewise.
       * gnu/java/nio/VMChannel.java: Likewise.

       * java/lang/Thread.java (getState): Add stub implementation.
       * java/lang/Class.java (isEnum): Likewise.
       * java/lang/Class.h (isEnum): Likewise.

       * gnu/awt/xlib/XToolkit.java (getClasspathTextLayoutPeer): Removed.

       * javax/naming/spi/NamingManager.java: New override for StackWalker
       functionality.

       * configure, sources.am, Makefile.in, gcj/Makefile.in,
       include/Makefile.in, testsuite/Makefile.in: Regenerated.

From-SVN: r116139
This commit is contained in:
Mark Wielaard 2006-08-14 23:12:35 +00:00
parent abab460491
commit ac1ed908de
1294 changed files with 99479 additions and 35933 deletions

View file

@ -43,17 +43,11 @@ import java.io.PrintWriter;
/**
*/
public class TransformerException extends Exception
public class TransformerException
extends Exception
{
// Constants and variables
// -------------------------------------------------------------------------
private Throwable _exception = null;
// Constructor(s)
// -------------------------------------------------------------------------
public TransformerException()
{
super();
@ -78,12 +72,6 @@ public class TransformerException extends Exception
this._exception = cause;
}
// Class methods
// -------------------------------------------------------------------------
// Instant methods
// -------------------------------------------------------------------------
public Throwable getCause()
{
return _exception;
@ -98,61 +86,53 @@ public class TransformerException extends Exception
{
super.printStackTrace();
if (_exception != null)
{
_exception.printStackTrace();
}
_exception.printStackTrace();
}
/**
* Prints this exception's stack trace to a print stream. If this exception
* has a root exception; the stack trace of the root exception is also
* printed to the print stream.
*
* has a root exception; the stack trace of the root exception is also printed
* to the print stream.
*
* @param ps the non-null print stream to which to print.
*/
public void printStackTrace(PrintStream ps)
{
super.printStackTrace(ps);
if (_exception != null)
{
_exception.printStackTrace(ps);
}
_exception.printStackTrace(ps);
}
/**
* Prints this exception's stack trace to a print writer. If this exception
* has a root exception; the stack trace of the root exception is also
* printed to the print writer.
*
* has a root exception; the stack trace of the root exception is also printed
* to the print writer.
*
* @param pw the non-null print writer to use for output.
*/
public void printStackTrace(PrintWriter pw)
{
super.printStackTrace(pw);
if (_exception != null)
{
_exception.printStackTrace(pw);
}
_exception.printStackTrace(pw);
}
/**
* Returns the string representation of this exception. The string
* representation contains this exception's class name, its detailed
* messsage, and if it has a root exception, the string representation of the
* root exception. This string representation is meant for debugging and not
* meant to be interpreted programmatically.
*
* representation contains this exception's class name, its detailed messsage,
* and if it has a root exception, the string representation of the root
* exception. This string representation is meant for debugging and not meant
* to be interpreted programmatically.
*
* @return the non-null string representation of this exception.
* @see Throwable#getMessage()
*/
public String toString()
{
StringBuffer sb = new StringBuffer(this.getClass().getName()).append(": ").append(
super.toString());
StringBuffer sb = new StringBuffer(this.getClass().getName())
.append(": ").append(super.toString());
if (_exception != null)
{
sb.append("; caused by: ").append(_exception.toString());
}
sb.append("; caused by: ").append(_exception.toString());
return sb.toString();
}
}