This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/20684] New: FileChannelImpl.java fails to sync filedescriptor on force() invocation
- From: "martin at egholm-nielsen dot dk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Mar 2005 12:29:12 -0000
- Subject: [Bug java/20684] New: FileChannelImpl.java fails to sync filedescriptor on force() invocation
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The implementation of "java.nio.channels.FileChannel" in present CVS head (as of
2005-03-29) "gcc/libjava/gnu/java/nio/channels/FileChannelImpl.java" does not
obey the contract for #force(boolean), which states that is should
flush/synchronize the channel's file with the storage device.
However, the implementation (in Revision 1.6.32.2, at least) does nothing like it:
public void force (boolean metaData) throws IOException
{
if (!isOpen ())
throw new ClosedChannelException ();
}
--
Summary: FileChannelImpl.java fails to sync filedescriptor on
force() invocation
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: martin at egholm-nielsen dot dk
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org,konqueror at gmx dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20684