Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NumberValue returns Fixed Type #10

Open
SagarN opened this issue Jan 11, 2016 · 1 comment
Open

NumberValue returns Fixed Type #10

SagarN opened this issue Jan 11, 2016 · 1 comment

Comments

@SagarN
Copy link

SagarN commented Jan 11, 2016

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.

@RichardHightower
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants