diff options
author | Michael Koch <mkoch@gcc.gnu.org> | 2005-04-25 19:48:35 +0000 |
---|---|---|
committer | Michael Koch <mkoch@gcc.gnu.org> | 2005-04-25 19:48:35 +0000 |
commit | ee141b882274c83730b641028543aaa2ca59dcc4 (patch) | |
tree | b5b9489b56407d7dd7458dfb66e0c427e65d010b /libjava/java/lang/Throwable.java | |
parent | 8efae6bbfa04f662589bbfc64dbbe68935f973d2 (diff) | |
download | gcc-ee141b882274c83730b641028543aaa2ca59dcc4.zip gcc-ee141b882274c83730b641028543aaa2ca59dcc4.tar.gz gcc-ee141b882274c83730b641028543aaa2ca59dcc4.tar.bz2 |
[multiple changes]
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.
From-SVN: r98734
Diffstat (limited to 'libjava/java/lang/Throwable.java')
-rw-r--r-- | libjava/java/lang/Throwable.java | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/libjava/java/lang/Throwable.java b/libjava/java/lang/Throwable.java index ad51578..d69b543 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 |