summaryrefslogtreecommitdiffstats
path: root/libjava/java/lang/Throwable.java
diff options
context:
space:
mode:
authormkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-25 19:48:35 +0000
committermkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-25 19:48:35 +0000
commitc5343e813b954d6508c3b23d5339103710e50b17 (patch)
treeb5b9489b56407d7dd7458dfb66e0c427e65d010b /libjava/java/lang/Throwable.java
parente4e2c0e7e62fb257a45f84aea845a023ce1fcb6d (diff)
downloadppe42-gcc-c5343e813b954d6508c3b23d5339103710e50b17.tar.gz
ppe42-gcc-c5343e813b954d6508c3b23d5339103710e50b17.zip
2005-04-25 Archie Cobbs <archie@dellroad.org>
* java/lang/Throwable.java: simplify initializing cause in constructor 2005-04-25 Michael Koch <konqueror@gmx.de> * gnu/classpath/SystemProperties.java: New file. * gnu/classpath/natSystemProperties.cc: New file. * java/lang/Runtime.java (defaultProperties): Removed. (static): Likewise. (): Made thrown exceptions more verbose. (insertSystemProperties): Removed. * java/lang/System.java (static): Likewise. (properties): Likewise. (setSecurityManager): Reordered modifiers. (getenv): Improved javadoc. (): Likewise. (isWordsBigEndian): Removed. * java/lang/natRuntime.cc (_Jv_SetDLLSearchPath): Likewise. (file_encoding): Likewise. (default_file_encoding): Likewise. (getpwuid_adaptor): Likewise. (insertSystemProperties): Likewise. * java/lang/natSystem.cc (isWordsBigEndian): Likewise. * Makefile.am (ordinary_java_source_files): Added gnu/classpath/SystemProperties.java. (nat_source_files): Added gnu/classpath/natSystemProperties.cc. * Makefile.in: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98734 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/lang/Throwable.java')
-rw-r--r--libjava/java/lang/Throwable.java12
1 files changed, 4 insertions, 8 deletions
diff --git a/libjava/java/lang/Throwable.java b/libjava/java/lang/Throwable.java
index ad5157823f5..d69b543141b 100644
--- a/libjava/java/lang/Throwable.java
+++ b/libjava/java/lang/Throwable.java
@@ -37,6 +37,8 @@ exception statement from your version. */
package java.lang;
+import gnu.classpath.SystemProperties;
+
import java.io.PrintStream;
import java.io.PrintWriter;
import java.io.Serializable;
@@ -170,7 +172,7 @@ public class Throwable implements Serializable
public Throwable(String message, Throwable cause)
{
this(message);
- initCause(cause);
+ this.cause = cause;
}
/**
@@ -401,13 +403,7 @@ public class Throwable implements Serializable
*/
private static class StaticData
{
- static final String nl;
-
- static
- {
- // Access package private properties field to prevent Security check.
- nl = System.properties.getProperty("line.separator");
- }
+ static final String nl = SystemProperties.getProperty("line.separator");
}
// Create whole stack trace in a stringbuffer so we don't have to print
OpenPOWER on IntegriCloud