Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/ikvm-fork.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjfrijters <jfrijters>2004-11-08 13:01:39 +0300
committerjfrijters <jfrijters>2004-11-08 13:01:39 +0300
commitf24334a663ecc9f5858e71a7bf0cb28d57db5682 (patch)
treee625fd97091fb83c3677bcf2f947b6687a48bab3 /classpath/java/lang/ExceptionHelper.java
parentf60cc2a8c5859006bb1599513c3cf672a6533dbc (diff)
*** empty log message ***
Diffstat (limited to 'classpath/java/lang/ExceptionHelper.java')
-rw-r--r--classpath/java/lang/ExceptionHelper.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/classpath/java/lang/ExceptionHelper.java b/classpath/java/lang/ExceptionHelper.java
index df7cac49..4c05596d 100644
--- a/classpath/java/lang/ExceptionHelper.java
+++ b/classpath/java/lang/ExceptionHelper.java
@@ -33,7 +33,8 @@ public final class ExceptionHelper
// able to distinguish it from a user specified blank string
private static final String NULL_STRING = new String();
private static final java.util.WeakHashMap exceptions = new java.util.WeakHashMap();
- private static final boolean cleanStackTrace = System.getProperty("ikvm.cleanstacktrace", "1").equals("1");
+ // We access Runtime.defaultProperties directly, to prevent problems should an exception occur during library bootstrap
+ private static final boolean cleanStackTrace = Runtime.defaultProperties.getProperty("ikvm.cleanstacktrace", "1").equals("1");
private static cli.System.Type System_Reflection_MethodBase = cli.System.Type.GetType("System.Reflection.MethodBase, mscorlib");
private static cli.System.Type System_Exception = cli.System.Type.GetType("System.Exception, mscorlib");