I'm not sure if this is new, but
longVal = PVUtil.getLong(pv[0])
pv[1].setValue(longVal)
this above code does not log an error, and it also doesn't set the value.
Changing to a double works:
doubleVal = PVUtil.getDouble(pv[0])
pv[1].setValue(doubleVal)
It seems getLong returns a BigInteger, while setValue doesn't accept BigInteger (and doesn't give an error).
I suppose this might work:
longVal = PVUtil.getLong(pv[0])
pv[1].setValue(longVal.longValue())
Is this a new jython return type mapping, or was it always broken?
I'm not sure if this is new, but
this above code does not log an error, and it also doesn't set the value.
Changing to a double works:
It seems getLong returns a BigInteger, while setValue doesn't accept BigInteger (and doesn't give an error).
I suppose this might work:
Is this a new jython return type mapping, or was it always broken?