The new SNMP4J fluent interface is a great help in designing understandable and maintainable workflow. However, I noticed that in (at least) two aspects the assignment of variable values through the fluent interface is not working. These cases are:
TargetBuilder.v2c() (or similar version setting command):
The root cause seems to be that the “TargetBuilder.build()” method does simply not consider the “snmpVersion” field when constructing the Target. Current workaround is “target.setVersion(SnmpConstants.version2c)” after constructing the target with “build()”.
PduBuilder.oids() (or similar oid/vb setting command):
Same logic applies here, the “vbs” field is simply not considered in the “PduBuilder.build()” method. Workaround using the old syntax is possible of course.
Are these indeed bugs, or am I missing something here?
Thanks in advance!