harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Zhang (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-671) [classlib][nio] java.nio.channels.FileLock.overlaps() should return true when the lock range is a subset of the given one.
Date Tue, 27 Jun 2006 02:36:29 GMT
[classlib][nio] java.nio.channels.FileLock.overlaps()  should return true when the lock range
is a subset of the given one.
---------------------------------------------------------------------------------------------------------------------------

         Key: HARMONY-671
         URL: http://issues.apache.org/jira/browse/HARMONY-671
     Project: Harmony
        Type: Bug

  Components: Classlib  
    Reporter: Andrew Zhang


java.nio.channels.FileLock.overlaps()  should return true when the lock range is a subset
of the given one.

Following test reproduces the bug: 

public void test_overlaps_lock() throws IOException {
        FileLock flock = readWriteChannel.lock(5, 10, true);  
        assertTrue(flock.overlaps(2, 20));
}

RI 5.0 passes the test, but Harmony fails. 

I'll fix the problem soon. 

Thanks.

Best regards,
Andrew


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message