support os.name in System.getProperty

This commit is contained in:
Joel Dice 2007-08-23 19:58:10 -06:00
parent d1dbb45d55
commit dd17a27485

View File

@ -16,6 +16,8 @@ Java_java_lang_System_getProperty(JNIEnv* e, jclass, jstring key)
if (chars) {
if (strcmp(chars, "line.separator") == 0) {
value = e->NewStringUTF("\n");
} else if (strcmp(chars, "os.name") == 0) {
value = e->NewStringUTF("posix");
}
e->ReleaseStringUTFChars(key, chars);
}