boon icon indicating copy to clipboard operation
boon copied to clipboard

NumberValue returns Fixed Type

Open SagarN opened this issue 9 years ago • 1 comments

Hi

@Override
    public TypeType type() {
        return TypeType.NUMBER;
}

Is this intentional ? NumberValue reads in a Float/Double. However, the type will always return NUMBER instead of field type.

SagarN avatar Jan 11 '16 23:01 SagarN

this may have been a mistake. calling toInt or toFloat should force it to do the right thing. It works for bean mapping because I know the type of the property I am injecting.

RichardHightower avatar Jan 13 '16 20:01 RichardHightower