Not very useful set and get properties
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Thu, 07 Nov 2013 09:44:51 +0100
changeset 14107a021349afec
parent 1409 3d1612be40bc
child 1411 1c76f0f66aeb
Not very useful set and get properties
rt/emul/compact/src/main/java/java/lang/System.java
     1.1 --- a/rt/emul/compact/src/main/java/java/lang/System.java	Thu Nov 07 09:41:45 2013 +0100
     1.2 +++ b/rt/emul/compact/src/main/java/java/lang/System.java	Thu Nov 07 09:44:51 2013 +0100
     1.3 @@ -21,6 +21,7 @@
     1.4  import java.io.ByteArrayOutputStream;
     1.5  import java.io.InputStream;
     1.6  import java.io.PrintStream;
     1.7 +import java.util.Properties;
     1.8  import org.apidesign.bck2brwsr.core.JavaScriptBody;
     1.9  
    1.10  /** Poor man's re-implementation of most important System methods.
    1.11 @@ -57,6 +58,14 @@
    1.12          return def;
    1.13      }
    1.14      
    1.15 +    public static Properties getProperties() {
    1.16 +        throw new SecurityException();
    1.17 +    }
    1.18 +    
    1.19 +    public static void setProperties(Properties p) {
    1.20 +        throw new SecurityException();
    1.21 +    }
    1.22 +    
    1.23      /**
    1.24       * Returns the system-dependent line separator string.  It always
    1.25       * returns the same value - the initial value of the {@linkplain