Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4913027
Votes 0
Synopsis SPEC: several Sequencer methods should specify behaviour on closed Sequencer
Category java:classes_sound
Reported Against tiger
Release Fixed 1.5(tiger-b26)
State 10-Fix Delivered, bug
Priority: 4-Low
Related Bugs 4940269
Submit Date 26-AUG-2003
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.
Work Around
N/A
Evaluation
Bug verified. While most of the work required is changing the specification, modifying setSequence() requires coding work.
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang