Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4685414

Spec: undefined behavior for Synthesizer.remapInstrument() method

    Details

      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.

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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                amenkov Alex Menkov
                Reporter:
                vitcsunw Vitc Vitc (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: