openjdk team mailing list archive
-
openjdk team
-
Mailing list archive
-
Message #00809
[Bug 275672] Re: OpenJDK-6-jre freezes on simple midi app, sun JRE does not
** Attachment added: "MusicTest1.java"
http://launchpadlibrarian.net/18024541/MusicTest1.java
--
OpenJDK-6-jre freezes on simple midi app, sun JRE does not
https://bugs.launchpad.net/bugs/275672
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-6 in ubuntu.
Status in “openjdk-6” source package in Ubuntu: New
Bug description:
Binary package hint: openjdk-6-jre
Ubuntu Intrepid Alpha6 8.10 updated as of Sunday, September 28th
OpenJDK version 6b12~pre1-0ubuntu3
When running a simple app that gets a Sequencer object and exits, OpenJDK will create the object and not exit while sun-java6-jre (version 6-07-4ubuntu2) creates the object and properly exits. The proper behavior is the one Sun's java exhibits.
Sample program (also attached):
import javax.sound.midi.*;
public class MusicTest1 {
public void play() {
try {
Sequencer sequencer = MidiSystem.getSequencer();
System.out.println("Successfully got a sequencer");
} catch(MidiUnavailableException ex) {
System.out.println("Bummer");
}
}
public static void main(String[] args) {
MusicTest1 mt = new MusicTest1();
mt.play();
System.out.println("After play");
}
}
References