Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-5817

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0M6
    • 5.0M6
    • Classlib
    • None
    • Patch Available

    Description

      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.

      Attachments

        1. Harmony-5817.zip
          6 kB
          Sean Qiu

        Activity

          People

            qiuxiaox Sean Qiu
            qiuxiaox Sean Qiu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: