Skip to content

[Bug] Pulsar2-11.0 pulsar-client AuthenticationSasl.class can not be used in java8 #19982

@littlecatjianjiao

Description

@littlecatjianjiao

Search before asking

  • I searched in the issues and found nothing similar.

Version

pulsar version : 2.11.0
java version : 1.8

Minimal reproduce step

My purpose is to use flink to consume the topic data set in pulsar, because our cluster uses kerberos for authentication, so when I use :
configuration.set(PulsarOptions.PULSAR_AUTH_PLUGIN_CLASS_NAME, org.apache.pulsar.client.impl.auth.AuthenticationSasl .class.getName());,

a compilation error occurs:

Cannot access org.apache.pulsar.client.impl.auth.AuthenticationSasl - Stack Overflow
   Bad class file: /C:/Users/admin/.m2/repository/org/apache/pulsar/pulsar-client-auth-sasl/2.11.0/pulsar-client-auth-sasl-2.11.0.jar! /org/apache/pulsar/client/impl/auth/AuthenticationSasl.class
     Class file has wrong version 61.0, should be 52.0
     Please delete the file or make sure the file is in the correct classpath subdirectory.

But when I use the 2.10.0 version of pulsar, it will be compiled normally, so I think that the compilation of pulsar2.11 version is carried out using java17, and it is not available in pulsar-client as the official website said compile with java8

What did you expect to see?

I think in version 2.11 of pulsar I can still use java8 to compile

What did you see instead?

Cannot access org.apache.pulsar.client.impl.auth.AuthenticationSasl - Stack Overflow
Bad class file: /C:/Users/admin/.m2/repository/org/apache/pulsar/pulsar-client-auth-sasl/2.11.0/pulsar-client-auth-sasl-2.11.0.jar! /org/apache/pulsar/client/impl/auth/AuthenticationSasl.class
Class file has wrong version 61.0, should be 52.0
Please delete the file or make sure the file is in the correct classpath subdirectory.

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

Labels

type/bugThe PR fixed a bug or issue reported a bug

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions