eclipse-paho / eclipse-paho/paho.mqtt.java

Incorrect casting in v5 ClientState persistBufferedMessage

Open
#1,073 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.3k
Forks
919
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.