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: 4716323
Votes 0
Synopsis ShortMessage may return bogus status byte
Category java:classes_sound
Reported Against hopper
Release Fixed 1.4.2(mantis)
State 10-Fix Delivered, bug
Priority: 4-Low
Related Bugs
Submit Date 17-JUL-2002
Description




ShortMessages received via an external MIDI input port always return
0x90 in getStatus(). To get the real status byte, use getCommand() and
getChannel().

This can be verified with the DumpReceiver from the Java Sound Examples,
by modifying the switch cases which use getCommand() and getChannel() to
use (getStatus() & 0xF0) and (getStatus() & 0x0F).


======================================================================
Work Around
N/A
Evaluation
  xxxxx@xxxxx   2002-07-17
	J2SE v. 1.4.1 uses an optimized version of ShortMessage to reduce memory allocation time. This optimized class (com.sun.media.sound.FastShortMessage) does not override getStatus() so that the default getStatus() of javax.sound.midi.ShortMessage is returned.

	Fixed in private workspace for Mantis.
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang