JDK-4685414 : Spec: undefined behavior for Synthesizer.remapInstrument() method
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.sound
  • Affected Version: 1.4.1
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2002-05-15
  • Updated: 2006-04-07
  • Resolved: 2006-04-07
Related Reports
Duplicate :  
Description
Name: vtR10009			Date: 05/15/2002


  Spec for Synthesizer.remapInstrument() from the package
javax.sound.midi does not declare conditions when this method 
returns false:
" Remaps an instrument. Instrument to takes the place of instrument from. 
For example, if from was located at bank number 2, program number 11, 
remapping causes that bank and program location to be occupied instead 
by to. Instrument from is unloaded.
  Parameters:
     from - instrument to be replaced
     to - new instrument to be used in place of the old instrument
  Returns:
     true if the instrument could be remapped, false otherwise."

I think the spec should specify in more detail when this method may 
return false since otherwise this may potentially lead to 
incompatibilityof implementations.

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

Comments
EVALUATION The bug has been fixed as part of fix for 4685396 (has been fixed in mustang b80) closing as duplicate
2006-04-07

CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: dragon
2004-06-14

EVALUATION ###@###.### 2002-05-15 Fix targeted for Mantis. ###@###.### 2003-10-07 Defer fixing of this bug until there is a fix for 4685396: method Synthesizer.remapInstrument() does not work.
2002-05-15