File.length should return 0 for non-existent files

This commit is contained in:
Joel Dice
2011-01-17 09:48:34 -07:00
parent c855224d14
commit 4a9ff55060
2 changed files with 7 additions and 1 deletions

View File

@ -331,7 +331,7 @@ Java_java_io_File_length(JNIEnv* e, jclass, jstring path)
}
}
return -1;
return 0;
}
extern "C" JNIEXPORT void JNICALL