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

Common package not exported

Open Okkyou opened this issue 5 years ago • 2 comments

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

  • [x] Bug exists Release Version 1.2.5 ( Master Branch)
  • [ ] Bug exists in MQTTv3 Client on Snapshot Version 1.2.6-SNAPSHOT (Develop Branch)
  • [ ] Bug exists in MQTTv5 Client on Snapshot Version 1.2.6-SNAPSHOT (Develop Branch)

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.

Okkyou avatar Dec 21 '20 07:12 Okkyou

is this fixed?

ishdemon avatar Apr 02 '21 20:04 ishdemon

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

fbaierl avatar Aug 04 '21 08:08 fbaierl