diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8ba85a0e2..b6e62d560 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,6 +31,7 @@ jobs: run: | git describe --tags make tmp/.version + echo $(javac -version) make dist/fury mv dist/fury.tar.gz dist/fury-$(head -n 1 tmp/.version).tar.gz timeout-minutes: 10 diff --git a/Makefile b/Makefile index f4df0854b..6fa5cfc56 100644 --- a/Makefile +++ b/Makefile @@ -43,6 +43,7 @@ tmp/lib/fury.jar: $(wildcard src/**/*.scala) tmp/.version mkdir -p tmp/lib && \ printf "$(MK) Done\n" && \ printf "$(MK) Compiling Fury from source...\n" && \ + javac -version && \ ./fury build save --https --project fury --module frontend --output linear --path tmp/lib --fat-jar --disable-security-manager && \ mv tmp/lib/fury-frontend.jar "$@" && \ jar uf "$@" -C tmp .version && \ diff --git a/src/ogdl/ogdl.scala b/src/ogdl/ogdl.scala index e71a4ab17..2c44bad98 100644 --- a/src/ogdl/ogdl.scala +++ b/src/ogdl/ogdl.scala @@ -16,8 +16,7 @@ */ package fury.ogdl -import java.nio.ByteBuffer -import java.nio.channels.FileChannel +import java.nio._, channels.FileChannel import fury.io._ import fury.text._ @@ -153,7 +152,8 @@ object Ogdl { val buffer = ByteBuffer.allocate(size) inChannel.read(buffer) - buffer.flip() + val bufferObject: Any = buffer + bufferObject match { case buffer: Buffer => buffer.flip() } buffer } finally inChannel.close()