This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug java/20684] New: FileChannelImpl.java fails to sync filedescriptor on force() invocation


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]