OPCFoundation / UA-Java-Legacy

This repository is provided by OPC Foundation as legacy support for an Java version for OPC UA.
https://github.com/OPCFoundation/UA-.NETStandard
Other
354 stars 226 forks source link

ExtensionObject should use ByteString instead of byte[] #179

Closed bjakke closed 5 years ago

bjakke commented 5 years ago

81 added ByteString class to be used as mappings for the UA ByteString type. ExtensionObject is defined to have either a ByteString or XmlElement, therefore it should use the given ByteString class. The existing constructor can be kept as deprecated to forward a new one that takes ByteString directly.

This will affect code dealing with custom Structures that do not have explicit Serializers defined for them, as the type returned by the ExtensionObject.getObject() will change to be the ByteString instead of the current byte array.