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

java.io bug: BufferedInputStream.markSupported() doesnt work fine.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 1.0.2
    • core-libs
    • sparc
    • solaris_2.4


      It is unclear if this is really a bug. In BufferedInputStream, markSupported is always
      made to return true. If the buffer size doesnt match the inputstream, and the inputstream
      doesnt support marking, what is the result for BufferedInputStream?

      The testcase is in BISmarkSupportedTest2.java. It is in /usr/green2/sqe/java-tests.

      Vijay


      It isn't a bug. It doesn't matter if the underlying InputStream doesn't support
      marking. The BufferedInputStream does, and buffers it.

      david.a.brown@Eng 1996-11-19

            djbrown David Brown (Inactive)
            vssriniv Vijay Srinivasan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: