Skip to content

Fix: solveMethodAsUsage() for implicit method <enum>::values()#4424

Merged
jlerbsc merged 2 commits intojavaparser:masterfrom
Kimmmey:fix-enum-values-solveMethodAsUsage
May 17, 2024
Merged

Fix: solveMethodAsUsage() for implicit method <enum>::values()#4424
jlerbsc merged 2 commits intojavaparser:masterfrom
Kimmmey:fix-enum-values-solveMethodAsUsage

Conversation

@Kimmmey
Copy link
Copy Markdown
Contributor

@Kimmmey Kimmmey commented May 17, 2024

Hi everyone,

this pull request fixes the remaining problem mentioned in #4416 and adds a test.

Calculating the type of an expression, containing the implicit method values(), with calculateResolvedType() throws an exception.

Reason: calculateResolvedType() uses the method solveMethodAsUsage(...) and this method is not able to resolve the implicit method values().

Best regards
Kim

@jlerbsc jlerbsc merged commit 1f8ecb2 into javaparser:master May 17, 2024
@jlerbsc jlerbsc added this to the next release milestone May 17, 2024
@jlerbsc jlerbsc added the PR: Fixed A PR that offers a fix or correction label May 17, 2024
@jlerbsc
Copy link
Copy Markdown
Collaborator

jlerbsc commented May 17, 2024

Thank you for this fix.

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.

2 participants