← Back to team overview

openjdk team mailing list archive

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

 

** Bug watch added: Iced Tea Bugzilla #213
   http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=213

** Also affects: openjdk via
   http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=213
   Importance: Unknown
       Status: Unknown

** Changed in: openjdk-6 (Ubuntu)
   Importance: Undecided => Medium
       Status: New => Triaged

-- 
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: Unknown
Status in “openjdk-6” source package in Ubuntu: Triaged

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