JDK-4964967 : SPEC: invalid example in MidiChannel
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.sound
  • Affected Version: 1.4.1
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2003-12-08
  • Updated: 2004-03-19
  • Resolved: 2004-03-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 b44Fixed
Description

Name: vtR10009			Date: 12/08/2003


Java Sound spec states for method MidiChannel.programChange():
"Since banks are changed by way of control changes, you can
verify the current bank with the following statement: 
        int bank = (getController(0) * 127)
                   + getController(32);"  
This is misprint since  Controller(0) denotes most significant 7-bit value
of 14-bit value and this example should look like this:
        int bank = (getController(0) * 128)
                   + getController(32);
           
This bug may mislead the users.

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

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

PUBLIC COMMENTS SPEC: invalid example in MidiChannel
10-06-2004

EVALUATION Typo in javadoc, should get fixed for tiger. ###@###.### 2003-12-15
15-12-2003