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

SPEC: several Sequencer methods should specify behaviour on closed Sequencer

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b26
    • CPU:
      generic
    • OS:
      generic

      Description

      For javax.sound.midi.Sequencer, the behaviour of several methods is not specified for the case that the Sequencer is not opened:
      In the current implementation, start(), stop(), startRecording() and StopRecording() throw an IllegalStateException. This seems logical and should be specified the way it is implemented.

      For setSequence(InputStream) and setSequence(Sequence), an IllegalStateException is thrown, too. However, it should be possible to set a Sequence even on a closed Sequencer. This should be specified explicitely, and the implementation changed.

      For getSequence(), no exception is thrown. This is considered correct. However, it should be specified explicitly that this call is legal even on a closed Sequencer.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: