diff -r bbc756ef9a73 -r 7937df26a5a7 rt/emul/compact/src/main/java/java/lang/System.java --- a/rt/emul/compact/src/main/java/java/lang/System.java Sat Sep 07 18:10:35 2013 +0200 +++ b/rt/emul/compact/src/main/java/java/lang/System.java Sun Sep 08 11:22:51 2013 +0200 @@ -33,8 +33,27 @@ return org.apidesign.bck2brwsr.emul.lang.System.currentTimeMillis(); } - public static long nanoTime() { - return org.apidesign.bck2brwsr.emul.lang.System.nanoTime(); + public static int identityHashCode(Object obj) { + return obj.defaultHashCode(); + } + + public static String getProperty(String name) { + return null; } + public static String getProperty(String key, String def) { + return def; + } + + /** + * Returns the system-dependent line separator string. It always + * returns the same value - the initial value of the {@linkplain + * #getProperty(String) system property} {@code line.separator}. + * + *

On UNIX systems, it returns {@code "\n"}; on Microsoft + * Windows systems it returns {@code "\r\n"}. + */ + public static String lineSeparator() { + return "\n"; + } }