Skip to content

Conversation

@qianye1001
Copy link
Contributor

Which Issue(s) This PR Fixes

Fixes #issue_id
#5068

Brief Description

Java 9 introduces overridden methods with covariant return types for the following methods in java.nio.ByteBuffer:

  • position
  • limit
  • flip
  • clear

How Did You Test This Change?

After compiling in the Java11 environment, it can run in the Java8 environment and send and receive messages normally

@aaron-ai
Copy link
Member

Nice catch!

@github-actions
Copy link

This PR is stale because it has been open for 365 days with no activity. It will be closed in 3 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this PR.

@github-actions github-actions bot added the stale label Jul 24, 2024
@github-actions
Copy link

This PR was closed because it has been inactive for 3 days since being marked as stale.

@github-actions github-actions bot closed this Jul 29, 2024
@HattoriHenzo
Copy link

[late answer] To solve this issue I had to recompile the jar with the JAVA_HOME set to Java 8 or 1.8 because the maven settings for the version of Java are set like this:

<!-- Compiler settings properties -->
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>

If you are using docker, use the eclipse-temurin:8-jdk-alpine image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants