[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] Patch: FYI: FileChannelImpl fixlet
From: |
Tom Tromey |
Subject: |
[cp-patches] Patch: FYI: FileChannelImpl fixlet |
Date: |
26 Apr 2005 15:44:06 -0600 |
I'm checking this in to libgcj and Classpath.
This fixes a small bug in FileChannelImpl; it comes from a libgcj PR.
Tom
Index: ChangeLog
from Luca Barbieri <address@hidden>
PR libgcj/21136:
* gnu/java/nio/channels/FileChannelImpl.java (tryLock): Pass
'false' to native lock().
(lock): Pass 'true' to native lock().
Index: gnu/java/nio/channels/FileChannelImpl.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/java/nio/channels/FileChannelImpl.java,v
retrieving revision 1.8
diff -u -r1.8 FileChannelImpl.java
--- gnu/java/nio/channels/FileChannelImpl.java 10 Mar 2005 15:29:15 -0000 1.8
+++ gnu/java/nio/channels/FileChannelImpl.java 26 Apr 2005 21:44:36 -0000
@@ -419,7 +419,7 @@
try
{
begin();
- lock(position, size, shared, true);
+ lock(position, size, shared, false);
completed = true;
return new FileLockImpl(this, position, size, shared);
}
@@ -451,7 +451,7 @@
try
{
- boolean lockable = lock(position, size, shared, false);
+ boolean lockable = lock(position, size, shared, true);
completed = true;
return (lockable
? new FileLockImpl(this, position, size, shared)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] Patch: FYI: FileChannelImpl fixlet,
Tom Tromey <=