diff --git a/classpath/java/lang/System.java b/classpath/java/lang/System.java index 26e4b63e8c..1817392ee0 100644 --- a/classpath/java/lang/System.java +++ b/classpath/java/lang/System.java @@ -63,15 +63,17 @@ public abstract class System { } } - public static void setProperty(String name, String value) { + public static String setProperty(String name, String value) { for (Property p = properties; p != null; p = p.next) { if (p.name.equals(name)) { + String oldValue = p.value; p.value = value; - return; + return oldValue; } } properties = new Property(name, value, properties); + return null; } private static native String getProperty(int code);