JDK-6633375 : FileOutputStream_md.c should be merged into FileOutputStream.c
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.io
  • Affected Version: 7
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2007-11-22
  • Updated: 2021-07-01
  • Resolved: 2021-06-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 18
18 b04Fixed
Related Reports
Relates :  
Description
Once bug

6631352: File{OutputStream,Writer} should implement atomic append mode using FILE_APPEND_DATA (win)

is fixed, the windows and unix versions of FileOutputStream_md.c
will be almost identical.  They can be merged into one platform-independent file,
for maintainability.  

Other refactorings are possible, e.g.
passing the file descriptor/HANDLE explicitly as a jlong instead of accessing
implicitly via JNI reflection.

Comments
Changeset: 3fae4b37 Author: Brian Burkhalter <bpb@openjdk.org> Date: 2021-06-25 19:07:39 +0000 URL: https://git.openjdk.java.net/jdk/commit/3fae4b372065b4293b64514e0679df419cd5c89a
25-06-2021

EVALUATION Seems to be worth doing.
22-11-2007