Closed
Description
The casting model needs to be overhauled to support the unsigned long
field type, added in 60050, as this type can return a BigInteger
.
Type promotion in the casting model works well for primitive types, String and def
.
The def
type is tricky to handle with boxed types and type promotion, the current model has limited support for boxed types.
As this is a major rework on a subtle subsystem, we should look toward interim support for unsigned long.
@jimczi @mayya-sharipova what do you think about having unsigned long
field return double
s for ScriptDocValues
?
Relates: #64347