mirror of
https://github.com/opennetworkinglab/onos.git
synced 2026-02-17 13:41:25 +01:00
When using logical port for replica such as SDN CPU port (0xfffffffd), the PreReplicaCodec will throw an ArithmeticException since this value is too big for an signed 32-bit integer. In that example, we need to convert the value to -3 According to the protobuf document[1]: "In Java, unsigned 32-bit and 64-bit integers are represented using their signed counterparts, with the top bit simply being stored in the sign bit." [1]: https://developers.google.com/protocol-buffers/docs/proto#scalar Change-Id: Ie3bda828d499b7d26d7b790f9ed76bb687243e57