paho.mqtt.java icon indicating copy to clipboard operation
paho.mqtt.java copied to clipboard

Incorrect casting in v5 ClientState persistBufferedMessage

Open Jugen opened this issue 8 months ago • 0 comments

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

Jugen avatar May 20 '25 08:05 Jugen