Uploaded image for project: 'JikesRVM'
  1. JikesRVM
  2. RVM-988

AddressInputStream does not follow API specification

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: 3.1.2
    • Fix Version/s: 3.1.4
    • Component/s: Runtime: JNI
    • Labels:
      None

      Description

      AddressInputStream does not follow the API specification of InputStream. Some issues include:

      1. read must return values between 0 and 255 (fixed by the attached patch from Da Feng). See also: MRP-97
      2. read should return -1 at the end of the stream instead of throwing an IOException
      3. skip is wrong when the parameter value does not fit into an int

      We should write a unit tests for this class and fix all issues.

        Attachments

          Activity

            People

            • Assignee:
              ebrangs Erik Brangs
              Reporter:
              ebrangs Erik Brangs
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: