← Back to team overview

openjdk team mailing list archive

[Bug 275672] Re: OpenJDK-6-jre freezes on simple midi app, sun JRE does not

 

** Changed in: openjdk-6 (Ubuntu Hardy)
       Status: New => In Progress

** Changed in: openjdk-6 (Ubuntu Intrepid)
       Status: New => In Progress

** Changed in: openjdk-6 (Ubuntu Hardy)
   Importance: Undecided => Medium

** Changed in: openjdk-6 (Ubuntu Intrepid)
   Importance: Undecided => Medium

-- 
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: Fix Released
Status in “openjdk-6” source package in Ubuntu: Triaged
Status in openjdk-6 in Ubuntu Hardy: In Progress
Status in openjdk-6 in Ubuntu Intrepid: In Progress

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