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

fix: issue 3184 Unable to get the resolved type of class ResolvedReferenceType from T #4147

Merged
merged 3 commits into from
Sep 22, 2023

Conversation

jlerbsc
Copy link
Collaborator

@jlerbsc jlerbsc commented Sep 22, 2023

Fixes #3184 .

The fix considers a raw type to be the name of the generic type used without any associated type parameters.
This fix also fixes erroneous unit tests.
For more information you can read these articles which deal with this subject.
https://docs.oracle.com/javase/tutorial/java/generics/rawTypes.html
https://www.informit.com/articles/article.aspx?p=2861454

My understanding is that:
Class<?> is a generic type but not a raw type
List is a generic type but not a raw type
List is a raw type of the genreric type List

@jlerbsc jlerbsc merged commit 1ccd482 into javaparser:master Sep 22, 2023
31 of 32 checks passed
@jlerbsc jlerbsc added this to the next release milestone Sep 22, 2023
@jlerbsc jlerbsc added the PR: Fixed A PR that offers a fix or correction label Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: Fixed A PR that offers a fix or correction
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to get the resolved type of class ResolvedReferenceType from T
1 participant