Skip to content

Commit

Permalink
Merge pull request #1835 from inception-project/bugfix/1828-Error-in-…
Browse files Browse the repository at this point in the history
…importing-projects

#1828 - Error in importing projects
  • Loading branch information
reckart authored Oct 27, 2020
2 parents ad3214a + 47da008 commit c7dfa73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
}

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<log4j.version>2.13.2</log4j.version>
<groovy.version>3.0.3</groovy.version>

<webanno.version>4.0.0-beta-16</webanno.version>
<webanno.version>4.0.0-SNAPSHOT</webanno.version>
<servlet-api.version>4.0.1</servlet-api.version>
<lucene.version>7.3.1</lucene.version>
<elasticsearch.version>6.3.0</elasticsearch.version>
Expand Down

0 comments on commit c7dfa73

Please sign in to comment.