--- old/src/java.base/windows/native/libjava/FileOutputStream_md.c 2016-08-25 17:51:55.247564710 -0700 +++ new/src/java.base/windows/native/libjava/FileOutputStream_md.c 2016-08-25 17:51:55.142564709 -0700 @@ -55,7 +55,10 @@ JNIEXPORT void JNICALL Java_java_io_FileOutputStream_open0(JNIEnv *env, jobject this, - jstring path, jboolean append) { + jstring path, jboolean append, jboolean direct) { + if (direct) { + JNU_ThrowIOException (env, "DirectIO is not available on Windows platform!"); + } fileOpen(env, this, path, fos_fd, O_WRONLY | O_CREAT | (append ? O_APPEND : O_TRUNC)); } @@ -73,6 +76,18 @@ } JNIEXPORT void JNICALL +Java_java_io_FileOutputStream_writeBytesD(JNIEnv *env, + jobject this, jbyteArray bytes, jint off, jint len, jboolean append) { + JNU_ThrowIOException (env, "DirectIO is not available on Windows platform!"); +} + +JNIEXPORT jint JNICALL +Java_java_io_FileOutputStream_getPageSize0(JNIEnv *env, jobject this) { + JNU_ThrowIOException (env, "DirectIO is not available on Windows platform!"); + return 0; +} + +JNIEXPORT void JNICALL Java_java_io_FileOutputStream_close0(JNIEnv *env, jobject this) { handleClose(env, this, fos_fd); }