[Rxtx] Serial.addEventListener bug?
Trent Jarvi
tjarvi at qbang.org
Fri Aug 25 05:15:44 MDT 2006
On Fri, 25 Aug 2006, Adrian Parker wrote:
> I'm using an old version of RXTX. Its 1.4-8 (packaged by Sun for use on
> OpenServer 5.0.7). Its what Sun packages.
>
> I have noticed that SerialPort.notifyOnDataAvailable(boolean) throws an
> exception. It seems to throw the exception if no listener was previously
> declared (although I've not had chance to verify).
>
> Is this desireable behaviour? Sun's original API doesn't mention anything
> about an exception on this function,
> http://java.sun.com/products/javacomm/reference/api/javax/comm/SerialPort.html#notifyOnDataAvailable(boolean)
>
> Of course this is an old version of RXTX, so perhaps this has been changed.
>
>
>
What exception was thrown? You can replace 1.4-8 with 2.0 for testing
purposes. They are the same package.
I doubt Sun shipped or packaged that. I think Caldera/SCOx/... did at one
point. There may still be updates on their pages. I recall them sending
patches here which are in current rxtx.
--
Trent Jarvi
tjarvi at qbang.org
More information about the Rxtx
mailing list