Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4127657

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.2.0
    • 1.1.5, 1.1.6, 1.2.0
    • 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: