You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Sean Qiu (JIRA)" <ji...@apache.org> on 2008/05/09 09:50:55 UTC

[jira] Created: (HARMONY-5817) [classlib][nio] MappedByteBuffer.isLoaded() behaviors are platform dependent

[classlib][nio] MappedByteBuffer.isLoaded() behaviors are platform dependent
----------------------------------------------------------------------------

                 Key: HARMONY-5817
                 URL: https://issues.apache.org/jira/browse/HARMONY-5817
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
    Affects Versions: 5.0M6
            Reporter: Sean Qiu
             Fix For: 5.0M6


its behavior is platform dependent, and the spec does not define the specific behavior.
The return value of is_load is just a hint, rather than a guarantee.

In windows, MappedByteBuffer.isLoaded() will always return false since it does not support this operation.
While in linux, there exists corresponding api to support this functionality.

Supply different testcases for each platform.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (HARMONY-5817) [classlib][nio] MappedByteBuffer.isLoaded() behaviors are platform dependent

Posted by "Sean Qiu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-5817?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Qiu reassigned HARMONY-5817:
---------------------------------

    Assignee: Sean Qiu

> [classlib][nio] MappedByteBuffer.isLoaded() behaviors are platform dependent
> ----------------------------------------------------------------------------
>
>                 Key: HARMONY-5817
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5817
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>    Affects Versions: 5.0M6
>            Reporter: Sean Qiu
>            Assignee: Sean Qiu
>             Fix For: 5.0M6
>
>         Attachments: Harmony-5817.zip
>
>
> its behavior is platform dependent, and the spec does not define the specific behavior.
> The return value of is_load is just a hint, rather than a guarantee.
> In windows, MappedByteBuffer.isLoaded() will always return false since it does not support this operation.
> While in linux, there exists corresponding api to support this functionality.
> Supply different testcases for each platform.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (HARMONY-5817) [classlib][nio] MappedByteBuffer.isLoaded() behaviors are platform dependent

Posted by "Sean Qiu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-5817?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Qiu closed HARMONY-5817.
-----------------------------

    Resolution: Fixed

This testcase will wrong in linux platform.
The spec does not define the exact behavior in different platfomr.

There is no guarantee for the return value of this method. It is just a hint.
So just remove this testcase.

Resolved in r660132.

> [classlib][nio] MappedByteBuffer.isLoaded() behaviors are platform dependent
> ----------------------------------------------------------------------------
>
>                 Key: HARMONY-5817
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5817
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>    Affects Versions: 5.0M6
>            Reporter: Sean Qiu
>            Assignee: Sean Qiu
>             Fix For: 5.0M6
>
>         Attachments: Harmony-5817.zip
>
>
> its behavior is platform dependent, and the spec does not define the specific behavior.
> The return value of is_load is just a hint, rather than a guarantee.
> In windows, MappedByteBuffer.isLoaded() will always return false since it does not support this operation.
> While in linux, there exists corresponding api to support this functionality.
> Supply different testcases for each platform.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-5817) [classlib][nio] MappedByteBuffer.isLoaded() behaviors are platform dependent

Posted by "Sean Qiu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-5817?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Qiu updated HARMONY-5817:
------------------------------

    Attachment: Harmony-5817.zip

Could someone please try this patch?

> [classlib][nio] MappedByteBuffer.isLoaded() behaviors are platform dependent
> ----------------------------------------------------------------------------
>
>                 Key: HARMONY-5817
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5817
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>    Affects Versions: 5.0M6
>            Reporter: Sean Qiu
>             Fix For: 5.0M6
>
>         Attachments: Harmony-5817.zip
>
>
> its behavior is platform dependent, and the spec does not define the specific behavior.
> The return value of is_load is just a hint, rather than a guarantee.
> In windows, MappedByteBuffer.isLoaded() will always return false since it does not support this operation.
> While in linux, there exists corresponding api to support this functionality.
> Supply different testcases for each platform.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.