eclipse / paho.mqtt.java

Eclipse Paho Java MQTT client library. Paho is an Eclipse IoT project.
https://eclipse.org/paho
Other
2.12k stars 883 forks source link

Common package not exported #853

Open Okkyou opened 3 years ago

Okkyou commented 3 years ago

Please fill out the form below before submitting, thank you!

Hello everyone, I have issues using the mqttv5 client using bndtools. I downloaded the latest version 1.2.5 and added it to the projects build path. When I call the the client constructor as follows ...

MqttClient client = new MqttClient("tcp://localhost", "test");

... I'm forced to handle an org.eclipse.paho.mqttv5.common.MqttException. The Eclipse IDE marks the exception with

Discouraged access: The type 'MqttException' is not API (restriction on required library 'pahotest/lib/org.eclipse.paho.mqttv5.client-1.2.5.jar')

I think, if the common package shall be used, it has to be marked as exported in the manifest.mf file.

ishdemon commented 3 years ago

is this fixed?

fbaierl commented 3 years ago

I think this was fixed, but 1.2.5 is still the latest released version....