Commit dd693fee authored by Lubomir Bulej's avatar Lubomir Bulej

Fix unmarshaling of garbage-collected object tags

This was caused by forcing the byte buffer provided by protobuf
implementation to BIG_ENDING byte order mode.
parent 814b47be
package ch.usi.dag.server;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import ch.usi.dag.dislre.protocol.Analysis;
import ch.usi.dag.dislre.protocol.Analysis.ObjectFree;
......@@ -113,7 +112,6 @@ final class AnalysisRequestDispatcher {
final long [] ids = new long [objectFree.getCount ()];
ByteBuffer.wrap (objectFree.toByteArray ())
.order (ByteOrder.BIG_ENDIAN)
.asLongBuffer ()
.get (ids);
......
package ch.usi.dag.reserver;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import ch.usi.dag.dislre.protocol.Analysis.Analyze;
import ch.usi.dag.dislre.protocol.Analysis.ClassInfo;
......@@ -97,7 +96,6 @@ final class RequestDispatcher {
final long [] ids = new long [objectFree.getCount ()];
ByteBuffer.wrap (objectFree.toByteArray ())
.order (ByteOrder.BIG_ENDIAN)
.asLongBuffer ()
.get (ids);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment