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

java.io bug: BufferedInputStream.available() doesnt return the correct bytecount

XMLWordPrintable

    • 1.1
    • sparc
    • solaris_2.4
    • Not verified


      Works fine for me in 1.1:

      sh bis1.sh 0
      java javasoft.sqe.tests.api.java.io.BISAvailableTest1 -TestCaseID smallTest
      read-tests for available are working fine.
      STATUS:Passed. available() returns correct count on inputstream.
      brown@monkey:/space/jck( 694 )% sh bis1.sh 1
      java javasoft.sqe.tests.api.java.io.BISAvailableTest1 -TestCaseID mediumTest
      read-tests for available are working fine.
      STATUS:Passed. available() returns correct count on inputstream.
      brown@monkey:/space/jck( 695 )% sh bis1.sh 2
      java javasoft.sqe.tests.api.java.io.BISAvailableTest1 -TestCaseID largeTest
      read-tests for available are working fine.
      STATUS:Passed. available() returns correct count on inputstream.
      brown@monkey:/space/jck( 696 )%

      Seems to have been fixed.

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


      The test case is BISAvailableTest1.java in the java compatibility testsuite.
      The testsuite located in /usr/green2/sqe/java-tests.

      Basically available() returns invalid byte counts after a bunch of reads have been done.

      Vijay

            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: