Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4964967
Votes 0
Synopsis SPEC: invalid example in MidiChannel
Category java:classes_sound
Reported Against hopper
Release Fixed 1.5(tiger-b44)
State 10-Fix Delivered, bug
Priority: 4-Low
Related Bugs
Submit Date 08-DEC-2003
Description
SPEC: invalid example in MidiChannel




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.

======================================================================
Work Around
N/A
Evaluation
Typo in javadoc, should get fixed for tiger.
 xxxxx@xxxxx  2003-12-15
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang