diff --git a/inception-search-mtas/src/main/java/de/tudarmstadt/ukp/inception/search/index/mtas/MtasUtils.java b/inception-search-mtas/src/main/java/de/tudarmstadt/ukp/inception/search/index/mtas/MtasUtils.java
index b9eaa63a097..6a925856600 100644
--- a/inception-search-mtas/src/main/java/de/tudarmstadt/ukp/inception/search/index/mtas/MtasUtils.java
+++ b/inception-search-mtas/src/main/java/de/tudarmstadt/ukp/inception/search/index/mtas/MtasUtils.java
@@ -17,6 +17,7 @@
*/
package de.tudarmstadt.ukp.inception.search.index.mtas;
+import java.nio.Buffer;
import java.nio.ByteBuffer;
import org.apache.commons.lang3.StringUtils;
@@ -60,7 +61,9 @@ public static int decodeFSAddress(BytesRef aBytesRef)
{
ByteBuffer buffer = ByteBuffer.allocate(4).put(aBytesRef.bytes, aBytesRef.offset,
aBytesRef.length);
- buffer.flip();
+ // Cast to buffer to permit code to run on Java 8.
+ // See: https://github.com/inception-project/inception/issues/1828#issuecomment-717047584
+ ((Buffer) buffer).flip();
return buffer.getInt();
}
diff --git a/pom.xml b/pom.xml
index 26414da060a..7b696dd9b58 100644
--- a/pom.xml
+++ b/pom.xml
@@ -74,7 +74,7 @@
2.13.2
3.0.3
- 4.0.0-beta-16
+ 4.0.0-SNAPSHOT
4.0.1
7.3.1
6.3.0