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

FilterInputStream is missing implementations of Java 9 InputStream methods

    Details

    • Type: Enhancement
    • Status: New
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 11.0.9, 15, 16
    • Fix Version/s: None
    • Component/s: core-libs
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      A DESCRIPTION OF THE PROBLEM :
      FilterInputStream passes through the original methods of InputStream to the wrapped stream. This means that all uses of a FilterInputStream will use the default implementations of the new methods on InputStream, rather than any overridden implementations available on the wrapped stream implementation. This may lead to performance issues.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      FilterInputStream should override and pass through the new methods added to InputStream - readAllBytes and readNBytes

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: