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] Updated: (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 03:57:30 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-671?page=all ]

Andrew Zhang updated HARMONY-671:
---------------------------------

    Attachment: nio.diff

Hello,

Would you please try my patch?

Thanks!

Best regards,
Andrew

> [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
>  Attachments: nio.diff
>
> 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