/[classpath]/classpath/gnu/java/nio/channels/FileChannelImpl.java
ViewVC logotype

Diff of /classpath/gnu/java/nio/channels/FileChannelImpl.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7.2.2 by gnu_andrew, Sun Mar 13 14:38:32 2005 UTC revision 1.7.2.3 by gnu_andrew, Thu Apr 28 23:00:12 2005 UTC
# Line 418  public final class FileChannelImpl exten Line 418  public final class FileChannelImpl exten
418      try      try
419        {        {
420          begin();          begin();
421          lock(position, size, shared, true);          lock(position, size, shared, false);
422          completed = true;          completed = true;
423          return new FileLockImpl(this, position, size, shared);          return new FileLockImpl(this, position, size, shared);
424        }        }
# Line 450  public final class FileChannelImpl exten Line 450  public final class FileChannelImpl exten
450    
451      try      try
452        {        {
453          boolean lockable = lock(position, size, shared, false);          boolean lockable = lock(position, size, shared, true);
454          completed = true;          completed = true;
455          return (lockable          return (lockable
456                  ? new FileLockImpl(this, position, size, shared)                  ? new FileLockImpl(this, position, size, shared)

Legend:
Removed from v.1.7.2.2  
changed lines
  Added in v.1.7.2.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26