From 9839499072cebd19a8c5cc2a3734adf60b06b21b Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 18 Nov 2000 02:29:13 +0000 Subject: natString.cc: Include Locale.h. * java/lang/natString.cc: Include Locale.h. (toUpperCase): Added `locale' argument. Handle locale sensitivity. (toLowerCase): Added `locale' argument. Handle locale sensitivity. (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I, CAPITAL_I): New defines. * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and final. Import Locale. (toUpperCase, toLowerCase): New methods. Variants which accept locale now native. * java/lang/ExceptionInInitializerError.java (printStackTrace): New methods. * java/util/PropertyPermission.java: Re-merged from Classpath. * java/text/RuleBasedCollator.java (getCollationElementIterator): New method. * java/text/StringCharacterIterator.java: Reindented. (setText): New method. From-SVN: r37539 --- libjava/java/lang/ExceptionInInitializerError.java | 23 +++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) (limited to 'libjava/java/lang/ExceptionInInitializerError.java') diff --git a/libjava/java/lang/ExceptionInInitializerError.java b/libjava/java/lang/ExceptionInInitializerError.java index 5c0144bdfa5..0aad2fc89ea 100644 --- a/libjava/java/lang/ExceptionInInitializerError.java +++ b/libjava/java/lang/ExceptionInInitializerError.java @@ -1,15 +1,17 @@ // ExceptionInInitializerError.java -/* Copyright (C) 1998, 1999 Free Software Foundation +/* Copyright (C) 1998, 1999, 2000 Free Software Foundation This file is part of libgcj. This software is copyrighted work licensed under the terms of the Libgcj License. Please consult the file "LIBGCJ_LICENSE" for details. */ - + package java.lang; - +import java.io.PrintStream; +import java.io.PrintWriter; + /** * @author Tom Tromey * @date October 1, 1998 @@ -45,6 +47,21 @@ public class ExceptionInInitializerError extends LinkageError return exception; } + public void printStackTrace () + { + exception.printStackTrace (); + } + + public void printStackTrace (PrintStream ps) + { + exception.printStackTrace (ps); + } + + public void printStackTrace (PrintWriter pw) + { + exception.printStackTrace (pw); + } + // The exception that caused this error. private Throwable exception; } -- cgit v1.2.3