Skip to content

Commit 2f8527b

Browse files
committed
Build with Java 8 due to ByteBuffer NoSuchMethodError (#116, #158)
As detailed at #116, Java 9 introduced overridden methods with covariant return types in ByteBuffer. The consequence is that Java 8 compatibility is problematic if compiling with Java 9 or above. This commit therefore performs the deployment step using Java 8. The fuller verification step is still completed on Java 11.
1 parent 24f136b commit 2f8527b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/maven.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ jobs:
8989
- name: Set up Java and Maven
9090
uses: actions/setup-java@v1
9191
with:
92-
java-version: 11
92+
# Java version 8 required due to https://github.com/lmdbjava/lmdbjava/issues/116
93+
java-version: 8
9394

9495
- name: Add OSSRH to the snapshot repositories list
9596
uses: s4u/maven-settings-action@v2.1.0

0 commit comments

Comments
 (0)