JDK-4435394 : Sound API prevent JVM from exiting
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.sound
  • Affected Version: 1.3.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2001-04-08
  • Updated: 2002-12-10
  • Resolved: 2002-12-10
Related Reports
Duplicate :  
Relates :  
Relates :  
Description

Name: boT120536			Date: 04/08/2001


java version "1.3.1-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-beta-b15)
Java HotSpot(TM) Client VM (build 1.3.1beta-b15, mixed mode)

After calling the sound API (ie javax.sound.sampled.AudioSystem.getMixerInfo()),
the JVM doesn't exit, even if no active thread are remaining.

The following code demonstrate :

package bugreport;

public class BugReportSoundAPI {

  public static void main(String[] args) {
    System.out.println("main start");
    javax.sound.sampled.AudioSystem.getMixerInfo();
    System.out.println("main stop");
  }
}

'main start' and 'main stop' appears in stdout, but the JVM doesn't exit.
(Review ID: 120120) 
======================================================================

Comments
WORK AROUND Name: boT120536 Date: 04/08/2001 Force JVM to exit by calling System.exit(0); ======================================================================
11-06-2004

EVALUATION ###@###.### 2001-07-06 This bug has always been in Java Sound. Needs to be fixed.
06-07-2001