Revision: 5609
          http://jnode.svn.sourceforge.net/jnode/?rev=5609&view=rev
Author:   lsantha
Date:     2009-07-17 06:40:54 +0000 (Fri, 17 Jul 2009)

Log Message:
-----------
Fixed system property handling.

Modified Paths:
--------------
    trunk/core/src/classpath/ext/javax/isolate/Isolate.java

Modified: trunk/core/src/classpath/ext/javax/isolate/Isolate.java
===================================================================
--- trunk/core/src/classpath/ext/javax/isolate/Isolate.java     2009-07-17 
06:36:54 UTC (rev 5608)
+++ trunk/core/src/classpath/ext/javax/isolate/Isolate.java     2009-07-17 
06:40:54 UTC (rev 5609)
@@ -52,7 +52,7 @@
      * @param args
      */
     public Isolate(String mainClass, String... args) {
-        this(new StreamBindings(), AccessController.doPrivileged(new 
GetPropertiesAction()), mainClass, args);
+        this(new StreamBindings(), null, mainClass, args);
     }
 
     /**
@@ -75,7 +75,10 @@
      * @param args
      */
     public Isolate(StreamBindings bindings, Properties properties, String 
mainClass, String... args) {
-        this.impl = new VmIsolate(this, bindings.getBindings(), properties, 
mainClass, args);
+        Properties defaultProperties = AccessController.doPrivileged(new 
GetPropertiesAction());
+        if(properties != null)
+            defaultProperties.putAll(properties);
+        this.impl = new VmIsolate(this, bindings.getBindings(), 
defaultProperties, mainClass, args);
     }
 
     /**


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Jnode-svn-commits mailing list
Jnode-svn-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jnode-svn-commits

Reply via email to