[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/24412] New: java.nio.channels.FileChannel#tryLock() fails
From: |
vadimn at redhat dot com |
Subject: |
[Bug classpath/24412] New: java.nio.channels.FileChannel#tryLock() fails to throw an OverlappingFileLockException |
Date: |
17 Oct 2005 19:15:22 -0000 |
Here's the expected behavior:
|$ java -classpath . Main
|java.vendor: Sun Microsystems Inc.
|java.vm.info: mixed mode
|java.version: 1.4.2_08
|Trying to acquire a lock on /tmp/test56741.deleteme
|acquired:
| sun.nio.ch.FileLockImpl[0:9223372036854775807 exclusive valid]
|
|Trying to reacquire a lock on /tmp/test56741.deleteme
|expectedly failed to reacquire the lock
|java.nio.channels.OverlappingFileLockException
| at sun.nio.ch.FileChannelImpl.checkList(FileChannelImpl.java:819)
| at sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:786)
| at java.nio.channels.FileChannel.tryLock(FileChannel.java:967)
| at Main.test(Main.java:37)
| at Main.main(Main.java:14)
Here's the actual behavior:
|$ gij -classpath . Main
|java.vendor: Free Software Foundation, Inc.
|java.vm.info: GNU libgcj 4.0.1 20050727 (Red Hat 4.0.1-5)
|java.version: 1.4.2
|Trying to acquire a lock on /tmp/test8471qw.deleteme
|acquired:
| gnu.java.nio.FileLockImpl[0:9223372036854775807 exclusive valid]
|
|Trying to reacquire a lock on /tmp/test8471qw.deleteme
|unexpectedly succeeded in reacquiring:
| gnu.java.nio.FileLockImpl[0:9223372036854775807 exclusive valid]
--
Summary: java.nio.channels.FileChannel#tryLock() fails to throw
an OverlappingFileLockException
Product: classpath
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: classpath
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: vadimn at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24412
- [Bug classpath/24412] New: java.nio.channels.FileChannel#tryLock() fails to throw an OverlappingFileLockException,
vadimn at redhat dot com <=