JDK-4883060 : AudioSystem.getAudioFileTypes returns duplicates
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.sound
  • Affected Version: 1.4.2
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2003-06-24
  • Updated: 2003-08-19
  • Resolved: 2003-08-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0 tigerFixed
Related Reports
Relates :  
Description

Name: fb126949			Date: 06/24/2003


If you install Tritonus' file readers and writers, Java Sound will report the same audio file type several times in the returned array

E.g. the following method prints:
Supported target types: au aif wav gsm mp3 au wav aif aifc


public static void listSupportedTargetTypes() {
  String strMessage = "Supported target types:";
  AudioFileFormat.Type[] aTypes = 
      AudioSystem.getAudioFileTypes();
  for (int i = 0; i < aTypes.length; i++) {
    strMessage += " " + aTypes[i].getExtension();
  }
  System.out.println(strMessage);
}

This bug should be fixed by using an internal hash list or so when assembling the file type array.

======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger FIXED IN: tiger INTEGRATED IN: tiger tiger-b16
14-06-2004

PUBLIC COMMENTS AudioSystem.getAudioFileType() returns duplicates
10-06-2004

EVALUATION ###@###.### 2003-06-24 Low risk, low interest, low engineering effort, easy to verify bug. Commit to tiger.
24-06-2003