sketch of Runtime.exec() and Calendar; misc bugfixes

This commit is contained in:
Joel Dice
2007-09-12 18:21:37 -06:00
parent 182414c6e0
commit 7cb3a30a91
21 changed files with 339 additions and 54 deletions

View File

@ -14,16 +14,24 @@ Java_java_lang_System_getProperty(JNIEnv* e, jclass, jint code)
{
enum {
LineSeparator = 100,
OsName = 101
FileSeparator = 101,
OsName = 102,
JavaIoTmpdir = 103
};
switch (code) {
case LineSeparator:
return e->NewStringUTF("\n");
case FileSeparator:
return e->NewStringUTF("/");
case OsName:
return e->NewStringUTF("posix");
case JavaIoTmpdir:
return e->NewStringUTF("/tmp");
default:
throwNew(e, "java/lang/RuntimeException", 0);
return 0;