JDK-4921049 : REGRESSION: JCK1.5-runtime api/javax_sound/sampled/Line/index.html#Line fails
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.sound
  • Affected Version: 5.0
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_2003
  • CPU: x86
  • Submitted: 2003-09-11
  • Updated: 2003-10-28
  • Resolved: 2003-10-13
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.
5.0 b24Fixed
Related Reports
Relates :  

Name: kaR10181			Date: 09/11/2003

Filed By       : J2SE-SQA [###@###.###
JDK            : JDK1.5.0-b18 (passes with b17)
JCK            : JCK1.5-runtime (b03)
Platform[s]    : Windows 2003
switch/Mode    : default
JCK test owner : http://javaweb.eng/jck/usr/owners.jto
Falling test[s]:
         api/javax_sound/sampled/Line/index.html#Line [Line2001, result]

JCK1.5-runtime api/javax_sound/sampled/Line/index.html#Line test fails with JDK1.5.0-b18

Test source location:

jtr file location:

How to reproduce:
Run the following script (you may need to change its variables)

--- script start ---



$JDK/bin/java -cp $CLASSPATH javasoft.sqe.tests.api.javax.sound.sampled.Line.LineTests -platform.canPlaySound false -TestCaseID ALL

--- script end ---

Test output:

Calling getControls():
Getting a supported control.
Unexpected return from isControlSupported( FloatControl.Type.MASTER_GAIN).  Expected true.
Trying an unsupported control.
Line2001: Failed. test failed
result: Failed. test cases: 1; all failed; first test case failure: Line2001

test result: Failed. test cases: 1; all failed; first test case failure: Line2001
Specific machine info:
Hostname: linux-19
OS: Windows 2003


CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger tiger-beta FIXED IN: tiger-beta INTEGRATED IN: tiger-b24 tiger-beta VERIFIED IN: tiger-beta

PUBLIC COMMENTS REGRESSION: JCK1.5-runtime api/javax_sound/sampled/Line/index.html#Line fails

EVALUATION ###@###.### 2003-09-26 The Java Sound API does not guarantee availability of Controls for all lines. They are not available for the new direct audio drivers, but will be added before code freeze. ###@###.### 2003-10-12 There were 2 problems: 1) an early tiger build had direct drivers for Windows, but no controls. This is fixed. However, the JCK test should be modified to not fail if a control cannot be found. Direct lines in current tiger builds support controls, but not SAMPLE_RATE control. 2) current builds fail the same test with IllegalArgumentException. This is due to a bug in AudioSystem.getLine, which is fixed in response to this bug. ###@###.### 2003-10-13 The JCK team agreed. The problem of optional controls is tracked in bug 4918787.