Azure / Azure/azure-relay-java

0.0.4 Release throws java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip() on Java 8 Runtime

Open
#87 0 comments 0 reactions 1 assignee Claimed by @kalkeea View on GitHub
Dominant language
Java
Stars
8
Forks
15
PR merge metrics
No merged PRs in 30d

Description

When compiling & running the sample code from https://github.com/Azure/azure-relay/tree/master/samples/hybrid-connections/java/simple-http-demo with Java 8 (Windows, Java version: 1.8.0_322, vendor: Temurin) and error is thrown:

java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer;
at com.microsoft.azure.relay.HybridHttpConnection$ResponseStream.lambda$closeAsync$7(HybridHttpConnection.java:471)

I think the issue is that 0.0.4 release was build with Java 16 (MANIFEST.MF says Build-Jdk: 16.0.2) as described here: https://stackoverflow.com/questions/61267495/exception-in-thread-main-java-lang-nosuchmethoderror-java-nio-bytebuffer-flip

0.0.3 doesn't suffer from this, and was built with Java 8.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.