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

AudioInputStream does not close the line when instanciated with TargetDataLine

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.4.0
    • client-libs
    • None
    • beta2
    • generic
    • generic
    • Verified



      Name: fb126949 Date: 07/14/2001


      1. construct an AudioInputStream with a line as parameter:
         AudioInputStream ais=new AudioInputStream (targetDataLine);
      2. Now, a call to ais.close() does NOT call close() of the
         the targetDataLine.

      The problem is in javax.sound.sampled.AudioInputstream, inner class TargetDataLineInputStream: it does not overwrite at all the close() method.


      ======================================================================

            fbomerssunw Florian Bomers (Inactive)
            fbomerssunw Florian Bomers (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: