--- old/src/windows/classes/sun/nio/ch/FileDispatcherImpl.java 2018-02-02 03:17:01.027317324 -0500 +++ new/src/windows/classes/sun/nio/ch/FileDispatcherImpl.java 2018-02-02 03:17:00.904317329 -0500 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -93,6 +93,11 @@ return truncate0(fd, size); } + int allocate(FileDescriptor fd, long size) throws IOException { + // truncate0() works for extending and truncating file size + return truncate0(fd, size); + } + long size(FileDescriptor fd) throws IOException { return size0(fd); }