paho.mqtt.java
paho.mqtt.java copied to clipboard
Incorrect casting in v5 ClientState persistBufferedMessage
The two MqttPublish casts in the following piece of code should be changed to MqttPersistable otherwise subscribe and unsubsribed messages throw ClassCastException
https://github.com/eclipse-paho/paho.mqtt.java/blob/9c742c1d83e71132452e08d325e5a90d1631c302/org.eclipse.paho.mqttv5.client/src/main/java/org/eclipse/paho/mqttv5/client/internal/ClientState.java#L616-L623