RFR: DIO-21: Second call to DeviceManager.open(I2CDeviceConfig) results in IOE instead of UDE
Sergey Nazarkin
snazarkin at azul.com
Tue Mar 29 14:45:19 UTC 2016
Looks good to me
Sergey Nazarkin
> On 29 Mar 2016, at 17:31, boris kvartskhava <boris.kvartskhava at oracle.com> wrote:
>
> issue: https://bugs.openjdk.java.net/browse/DIO-21
> webrev: http://cr.openjdk.java.net/~onazarkina/DIO-21/
>
> According to the specification, DeviceManager.open() methods are expected to throw
> "UnavailableDeviceException (UDE) -
> if the designated device is not currently available - such as if it is already open with exclusive access."
>
> This is checked in i2c_attach_slave_to_bus whose return value (JAVACALL_DIO_BUSY which is translated into UDE)
> is wrongly ignored and JAVACALL_DIO_FAIL (translated into IOE) is returned instead.
More information about the dio-dev
mailing list