You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior
With either value 1 or 5 the javascript to java conversion should work but it seems a Rhino issue. Or, at least, the sendTrap function should cast from Double to Integer if needed internally.
Workaround
Using the "How to reproduce" code above just force the java type conversion:
Description
Whenever sending a SNMP trap with an object of type "integer" there are cases where the following exception can occur:
How to reproduce
Just try to send a number 1 or number 5, for example:
Expected behavior
With either value 1 or 5 the javascript to java conversion should work but it seems a Rhino issue. Or, at least, the sendTrap function should cast from Double to Integer if needed internally.
Workaround
Using the "How to reproduce" code above just force the java type conversion:
The text was updated successfully, but these errors were encountered: