bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-classpath] [Bug classpath/23050] FileChannel.lock() doesn't work fo


From: mark at gcc dot gnu dot org
Subject: [bug-classpath] [Bug classpath/23050] FileChannel.lock() doesn't work for whole file (Long.MAX_VALUE not valid for fcntl)
Date: 7 Aug 2005 19:49:23 -0000

------- Additional Comments From mark at gcc dot gnu dot org  2005-08-07 19:49 
-------
Fixed by:

2005-07-31  Mark Wielaard  <address@hidden>

       * gnu/java/nio/FileLockImpl.java: Mark class final.
       (ch): Removed field.
       (valid): New field.
       (FileLockImpl): Set valid to true.
       (isValid): Test and set valid field.
       (release): Release lock if it is still valid.
       * java/nio/channels/FileLock.java: Mark all fields private final.
       * native/jni/java-nio/gnu_java_nio_channels_FileChannelImpl.c
       (Java_gnu_java_nio_channels_FileChannelImpl_lock): Translate
       Long.MAX_VALUE to zero for fcntl.
       (Java_gnu_java_nio_channels_FileChannelImpl_unlock): Likewise.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23050




reply via email to

[Prev in Thread] Current Thread [Next in Thread]