zeromq / jeromq

JeroMQ is a pure Java implementation of the ZeroMQ messaging library, offering high-performance asynchronous messaging for distributed or concurrent applications.
https://zeromq.org
Mozilla Public License 2.0
2.36k stars 481 forks source link

SocketType enum not present in 0.6.0 #990

Closed Ivan8or closed 3 months ago

Ivan8or commented 3 months ago

follow up to this issue (which admittedly had next to no info) https://github.com/zeromq/jeromq/issues/986

in JMQ version 0.5.4, import org.zeromq.SocketType; resolves in intellij as expected, and I am able to run code like

public static void main(String[] args) {
        try (ZContext context = new ZContext()) {
            ZMQ.Socket socket = context.createSocket(SocketType.SUB);
            socket.connect("tcp://192.168.1.22:18082");
        }catch (Exception e) {
            e.printStackTrace();
        }
    }

with no issues.

Upon upgrading to JMQ version 0.6.0, import org.zeromq.SocketType; cannot be resolved by intellij / glows red. However, the above code still runs as expected, despite SocketType not being recognized as an existing class.

I appreciate the JMQ group taking the time to look into and resolve issues like these, OSS is what make the world turn!

fbacchella commented 3 months ago

That’s a problem with Intellij, not with JeroMQ.