dnp3 icon indicating copy to clipboard operation
dnp3 copied to clipboard

OctetString has private constructor in Java bindings

Open kevinherron opened this issue 1 year ago • 4 comments

Unlike the other point types, OctetString has a private constructor and no factory methods, which leaves me unable to instantiate one in my application/test code.

kevinherron avatar Sep 02 '24 14:09 kevinherron

Easy fix to make that constructor public. Is this blocking you?

jadamcrain avatar Sep 03 '24 15:09 jadamcrain

Not meaningfully, it only came up trying to write a unit test.

kevinherron avatar Sep 03 '24 15:09 kevinherron

It does make me wonder, though - is it currently possible to write to an OctetString point using the Java bindings?

kevinherron avatar Sep 03 '24 15:09 kevinherron

There are no methods on MasterChannel that would allow you to do that currently. Would be an easy feature to add if you want it in the next release.

jadamcrain avatar Sep 03 '24 17:09 jadamcrain