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

Fields with generics in generics leads to TypeResolver NPE in JDK 11 #243

Closed
pauxus opened this issue Apr 29, 2022 · 4 comments · Fixed by #247
Closed

Fields with generics in generics leads to TypeResolver NPE in JDK 11 #243

pauxus opened this issue Apr 29, 2022 · 4 comments · Fixed by #247
Assignees
Labels

Comments

@pauxus
Copy link
Member

pauxus commented Apr 29, 2022

something like Map<String, List<String>>

Does not happen with JDK 1.8

@pauxus pauxus added the bug label Apr 29, 2022
@pauxus pauxus self-assigned this Apr 29, 2022
@pauxus
Copy link
Member Author

pauxus commented May 2, 2022

Problem seems to be the explicitly created converter methods from constructors with multiple elements.

@pauxus
Copy link
Member Author

pauxus commented May 2, 2022

In this case the number of List.of(...) methods defined in List

@pauxus
Copy link
Member Author

pauxus commented May 2, 2022

Multiple options:

  • fastest: simply ignored these generified factories
  • make ConverterBuilder correctly handle generics

@pauxus
Copy link
Member Author

pauxus commented May 2, 2022

Reason for not happening in JDK8 is simply the missing Factory methods in List

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

Successfully merging a pull request may close this issue.

1 participant