← 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
   Importance: Unknown => Medium

-- 
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-6 in ubuntu.
https://bugs.launchpad.net/bugs/275672

Title:
  OpenJDK-6-jre freezes on simple midi app, sun JRE does not

Status in OpenJDK:
  Fix Released
Status in “openjdk-6” package in Ubuntu:
  Fix Released
Status in “openjdk-6” source package in Hardy:
  In Progress
Status in “openjdk-6” source package in Intrepid:
  Invalid

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