-
Enhancement
-
Resolution: Fixed
-
P4
-
6
-
b112
-
generic
-
generic
-
Verified
Name: fb126949 Date: 10/07/2003
This is a follow-up to 4931387: RFE: Add methods to MidiDevice to get list of Transmitters and Receivers
Currently the API does not allow to get the MidiDevice from a Receiver or Transmitter. This would be very useful, e.g. to eliminate the need to cache devices and their receivers, and to be able to close devices of which you only got a reference to a Receiver or Transmitter instance.
There are 2 solutions we could come up with:
Either add the method getMidiDevice() to each Receiver and Transmitter (which would break user-application compatibility), or add an interface MidiDeviceGetter with one method getMidiDevice which could be implemented by Receivers or Transmitters. The latter solution is clumsy, not intuitive.
So we don't know how to best solve this.
======================================================================
This is a follow-up to 4931387: RFE: Add methods to MidiDevice to get list of Transmitters and Receivers
Currently the API does not allow to get the MidiDevice from a Receiver or Transmitter. This would be very useful, e.g. to eliminate the need to cache devices and their receivers, and to be able to close devices of which you only got a reference to a Receiver or Transmitter instance.
There are 2 solutions we could come up with:
Either add the method getMidiDevice() to each Receiver and Transmitter (which would break user-application compatibility), or add an interface MidiDeviceGetter with one method getMidiDevice which could be implemented by Receivers or Transmitters. The latter solution is clumsy, not intuitive.
So we don't know how to best solve this.
======================================================================
- relates to
-
JDK-7006990 Object methods are not forwarded for custom Receiver and Transmiter
- Closed