Fork me on GitHub
#beginners
<
2019-11-30
>
phreed19:11:02

I want to call PulsarClient/broker https://github.com/apache/pulsar/blob/master/pulsar-client-api/src/main/java/org/apache/pulsar/client/api/PulsarClient.java#L49 but when I try I get Unable to find static field: builder in interface org.apache.pulsar.client.api.PulsarClient What is the proper interop command?

hiredman20:11:08

You should check the version of the library you are using matches the code on github

didibus01:12:14

Might be because it's not a public field?

didibus01:12:34

Otherwise the syntax would be (PulsarClient/builder)

didibus01:12:26

You might need to use reflection to access it instead. Or create a Java class in the same package which exposes a public static method calling that one under the hood.