BUG-1431: make sure (Yang)InstanceIdentifier is Serializable 34/11134/3
authorRobert Varga <rovarga@cisco.com>
Sat, 13 Sep 2014 14:25:51 +0000 (16:25 +0200)
committerRobert Varga <rovarga@cisco.com>
Mon, 15 Sep 2014 09:31:06 +0000 (11:31 +0200)
commite36eb584a84b5facc16947c2ce895f5473b11be0
tree5cc6619f0fc15788cdde5a841e6864248ce974a9
parente06d68078e8fba0932f04366275fc4b0e7b6bec9
BUG-1431: make sure (Yang)InstanceIdentifier is Serializable

This works around the fact that an Iterable cannot be serialized by
forcing instantiation of the legacy path. The read side then just does
the opposite.

For InstanceIdentifier the situation is similar, except we perform the
writeout/read-in ourselves.

Bumps the serialization format for InstanceIdentifier and
YangInstanceIdentifier to 2 and 3 respectively.

Change-Id: I668e2aeebde20b99cfe3b41594b3925697295d05
Signed-off-by: Robert Varga <rovarga@cisco.com>
yang/yang-binding/src/main/java/org/opendaylight/yangtools/yang/binding/InstanceIdentifier.java
yang/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/YangInstanceIdentifier.java
yang/yang-data-api/src/test/java/org/opendaylight/yangtools/yang/data/api/InstanceIdentifierTest.java