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

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 1.4.0
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: