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

bug: When using the generateJava plugin the classes created have the error: incompatible types: int cannot be converted to Long #2118

Open
hortegag opened this issue Feb 12, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@hortegag
Copy link

Expected behavior

When using the scalar UnsignedInt in the schema file and mapping then to java.lang.Long The generateJava plugin should create the clases without compilation problems

Actual behavior

The classes created have the compilation problem
error: incompatible types: int cannot be converted to Long
private Long numberPopulation = 0;

Steps to reproduce

I added a public github repo with the configuration and the schema file

https://github.com/hortegag/graphql-test-schema/tree/main

@hortegag hortegag added the bug Something isn't working label Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant