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

Change SwitchStmt to SwitchNode in SwitchEntryContext to avoid ClassCastException #4283

Merged

Conversation

PalashSharma20
Copy link
Contributor

@PalashSharma20 PalashSharma20 commented Jan 1, 2024

I faced an issue when resolving MethodCallExpr nodes within MethodDeclaration nodes in source code that used enhanced switch statements.

…olving MethodCallExpr for code that has enhanced switch statements
@PalashSharma20 PalashSharma20 changed the title Changed SwitchStmt to SwitchNode in SwitchEntryContext to avoid ClassCastException Change SwitchStmt to SwitchNode in SwitchEntryContext to avoid ClassCastException Jan 1, 2024
@jlerbsc
Copy link
Collaborator

jlerbsc commented Jan 1, 2024

Before proposing a PR, you could explain your problem by creating an issue and submit a test case that reproduces the problem you have encountered.

@jlerbsc jlerbsc closed this Jan 1, 2024
@jlerbsc jlerbsc reopened this Jan 1, 2024
@jlerbsc
Copy link
Collaborator

jlerbsc commented Jan 1, 2024

Refers to the #4284

@jlerbsc jlerbsc merged commit c084bb4 into javaparser:master Jan 1, 2024
38 checks passed
@jlerbsc
Copy link
Collaborator

jlerbsc commented Jan 1, 2024

Thank you for this first PR of the year 2024

@jlerbsc jlerbsc added this to the next release milestone Jan 1, 2024
@jlerbsc jlerbsc added the PR: Fixed A PR that offers a fix or correction label Jan 1, 2024
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.

None yet

2 participants