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

Invoking inherited "open()" method on a Clip results in exception.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.4.0
    • client-libs

      Invoking inherited "open()" method on a Clip results in the following exception:
      ________________________________________
      java.lang.IllegalArgumentException: This method should not have been invoked!
              at com.sun.media.sound.MixerClip.implOpen(MixerClip.java:457)
              at com.sun.media.sound.AbstractDataLine.open(AbstractDataLine.java:87)
              at com.sun.media.sound.AbstractDataLine.open(AbstractDataLine.java:383)
              at test020.runTest(test020.java:47)
              at test020.main(test020.java:78)
      ________________________________________
      Although it is more appropriate to call one of Clip's own "open" methods, (both of which have signatures that are different than the inherited), JavaDoc states that resources for a clip with zero frames of data should be allocated.

      To reproduce, see attached code.

      ###@###.### 2000-09-13
      This problem was discovered in Merlin b30 but exists in jdk1.3 as well.


      jerry.barnes@eng 2001-01-29
      Removed from Ladybird project as per request.
      Although this bug applies Ladybird as well as Merlin, there are no engineering resources to address it in the Ladybird project timeframe.

            fbomerssunw Florian Bomers (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: