1.1 --- a/rt/emul/compact/src/main/java/java/lang/System.java Sat Sep 07 18:10:35 2013 +0200
1.2 +++ b/rt/emul/compact/src/main/java/java/lang/System.java Sun Sep 08 11:22:51 2013 +0200
1.3 @@ -33,8 +33,27 @@
1.4 return org.apidesign.bck2brwsr.emul.lang.System.currentTimeMillis();
1.5 }
1.6
1.7 - public static long nanoTime() {
1.8 - return org.apidesign.bck2brwsr.emul.lang.System.nanoTime();
1.9 + public static int identityHashCode(Object obj) {
1.10 + return obj.defaultHashCode();
1.11 + }
1.12 +
1.13 + public static String getProperty(String name) {
1.14 + return null;
1.15 }
1.16
1.17 + public static String getProperty(String key, String def) {
1.18 + return def;
1.19 + }
1.20 +
1.21 + /**
1.22 + * Returns the system-dependent line separator string. It always
1.23 + * returns the same value - the initial value of the {@linkplain
1.24 + * #getProperty(String) system property} {@code line.separator}.
1.25 + *
1.26 + * <p>On UNIX systems, it returns {@code "\n"}; on Microsoft
1.27 + * Windows systems it returns {@code "\r\n"}.
1.28 + */
1.29 + public static String lineSeparator() {
1.30 + return "\n";
1.31 + }
1.32 }