read(byte[], int, int) in xxxReader can throw undocumented exceptions

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 1.2.0
    • Affects Version/s: 1.1.5, 1.1.6, 1.2.0
    • Component/s: core-libs
    • 1.2beta4
    • generic, x86, sparc
    • generic, solaris_2.6, windows_nt
    • Not verified

      The read(byte[] b, int off, int len) in several xxxReader classes do not
      check if their arguments are valid and could throw undocumented exceptions.
      We need to add checks in these methods and update the document
      for the general constract of this method in the Reader class to specify what kind of exception will be thrown in different cases.

      Same problem exists for write(byte[], int, int) methods defined in several
      Writer classes.

            Assignee:
            Zhenghua Li (Inactive)
            Reporter:
            Zhenghua Li (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: